1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Update rules

This commit is contained in:
gkodosis 2020-07-01 20:58:41 +03:00
parent 55eaf7e013
commit 9a9aeef92c
4 changed files with 20 additions and 4 deletions

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]