mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
#827: Make cat_dir
rule safer
This commit is contained in:
parent
1dfd6373ee
commit
4e755e4799
@ -1,9 +1,8 @@
|
||||
import os
|
||||
|
||||
from thefuck.utils import for_app
|
||||
|
||||
|
||||
@for_app('cat')
|
||||
@for_app('cat', at_least=1)
|
||||
def match(command):
|
||||
return (
|
||||
command.output.startswith('cat: ') and
|
||||
|
Loading…
x
Reference in New Issue
Block a user