mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-25 14:42:33 +01:00
#827: Make cat_dir
rule safer
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from thefuck.utils import for_app
|
from thefuck.utils import for_app
|
||||||
|
|
||||||
|
|
||||||
@for_app('cat')
|
@for_app('cat', at_least=1)
|
||||||
def match(command):
|
def match(command):
|
||||||
return (
|
return (
|
||||||
command.output.startswith('cat: ') and
|
command.output.startswith('cat: ') and
|
||||||
|
Reference in New Issue
Block a user