-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0):
The Fuck 3.26 using Python 3.6.5
Your shell and its version (bash, zsh, Windows PowerShell, etc.):
Fish v2.7.1 (works fine in Bash)
Your system (Debian 7, ArchLinux, Windows, etc.):
macOS 10.13.5 Beta (17F45c)
How to reproduce the bug:
Run 'fuck' command after entering any incorrect command in Fish shell.
The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):
DEBUG: Run with settings: {'alter_history': True,
'debug': True,
'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
'exclude_rules': [],
'history_limit': None,
'instant_mode': False,
'no_colors': False,
'priority': {},
'repeat': False,
'require_confirmation': True,
'rules': [<const: All rules enabled>],
'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
'user_dir': PosixPath('/Users/user/.config/thefuck'),
'wait_command': 3,
'wait_slow_command': 15}
DEBUG: Total took: 0:00:00.296931
Traceback (most recent call last):
File "/usr/local/bin/thefuck", line 12, in <module>
sys.exit(main())
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/entrypoints/main.py", line 25, in main
fix_command(known_args)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/entrypoints/fix_command.py", line 36, in fix_command
command = types.Command.from_raw_script(raw_command)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/types.py", line 81, in from_raw_script
expanded = shell.from_shell(script)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/shells/generic.py", line 30, in from_shell
return self._expand_aliases(command_script)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/shells/fish.py", line 65, in _expand_aliases
aliases = self.get_aliases()
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/shells/fish.py", line 60, in get_aliases
raw_aliases = _get_aliases(overridden)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/utils.py", line 33, in wrapper
memo[key] = fn(*args, **kwargs)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/utils.py", line 267, in wrapper
return _cache.get_value(fn, depends_on, args, kwargs)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/utils.py", line 243, in get_value
value = fn(*args, **kwargs)
File "/usr/local/Cellar/thefuck/3.26/libexec/lib/python3.6/site-packages/thefuck/shells/fish.py", line 25, in _get_aliases
name, value = alias.replace('alias ', '', 1).split(' ', 1)
ValueError: not enough values to unpack (expected 2, got 1)
If the bug only appears with a specific application, the output of that application and its version:
N/A
Anything else you think is relevant:
N/A
adamkiss, DmitriK, xdefrag, laqda and jrr
