mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 06:38:32 +00:00
Update rules
This commit is contained in:
parent
55eaf7e013
commit
9a9aeef92c
@ -1,5 +1,5 @@
|
||||
import re
|
||||
from thefuck.utils import for_app, replace_argument, replace_command
|
||||
from thefuck.utils import cache, for_app, replace_argument, replace_command, which
|
||||
from thefuck.specific.devenv import env_available, COMMON_TYPOS, get_commands
|
||||
|
||||
enabled_by_default = env_available
|
||||
@ -10,6 +10,10 @@ def match(command):
|
||||
return 'goenv: no such command' in command.output
|
||||
|
||||
|
||||
if which('goenv'):
|
||||
get_commands = cache(which('goenv'))(get_commands)
|
||||
|
||||
|
||||
@for_app('goenv')
|
||||
def get_new_command(command):
|
||||
broken = re.findall(r"goenv: no such command '([^']*)'", command.output)[0]
|
||||
|
@ -1,5 +1,5 @@
|
||||
import re
|
||||
from thefuck.utils import for_app, replace_argument, replace_command
|
||||
from thefuck.utils import cache, for_app, replace_argument, replace_command, which
|
||||
from thefuck.specific.devenv import env_available, COMMON_TYPOS, get_commands
|
||||
|
||||
enabled_by_default = env_available
|
||||
@ -10,6 +10,10 @@ def match(command):
|
||||
return 'nodenv: no such command' in command.output
|
||||
|
||||
|
||||
if which('nodenv'):
|
||||
get_commands = cache(which('nodenv'))(get_commands)
|
||||
|
||||
|
||||
@for_app('nodenv')
|
||||
def get_new_command(command):
|
||||
broken = re.findall(r"nodenv: no such command `([^']*)'", command.output)[0]
|
||||
|
@ -1,5 +1,5 @@
|
||||
import re
|
||||
from thefuck.utils import for_app, replace_argument, replace_command
|
||||
from thefuck.utils import cache, for_app, replace_argument, replace_command, which
|
||||
from thefuck.specific.devenv import env_available, COMMON_TYPOS, get_commands
|
||||
|
||||
enabled_by_default = env_available
|
||||
@ -10,6 +10,10 @@ def match(command):
|
||||
return 'pyenv: no such command' in command.output
|
||||
|
||||
|
||||
if which('pyenv'):
|
||||
get_commands = cache(which('pyenv'))(get_commands)
|
||||
|
||||
|
||||
@for_app('pyenv')
|
||||
def get_new_command(command):
|
||||
broken = re.findall(r"pyenv: no such command `([^']*)'", command.output)[0]
|
||||
|
@ -1,5 +1,5 @@
|
||||
import re
|
||||
from thefuck.utils import for_app, replace_argument, replace_command
|
||||
from thefuck.utils import cache, for_app, replace_argument, replace_command, which
|
||||
from thefuck.specific.devenv import env_available, COMMON_TYPOS, get_commands
|
||||
|
||||
enabled_by_default = env_available
|
||||
@ -10,6 +10,10 @@ def match(command):
|
||||
return 'rbenv: no such command' in command.output
|
||||
|
||||
|
||||
if which('rbenv'):
|
||||
get_commands = cache(which('rbenv'))(get_commands)
|
||||
|
||||
|
||||
@for_app('rbenv')
|
||||
def get_new_command(command):
|
||||
broken = re.findall(r"rbenv: no such command `([^']*)'", command.output)[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user