-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"gut push" not corrected to "git push" #842
Comments
Sorry, overlooked the message, the |
|
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': [], 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'], 'user_dir': PosixPath('/Users/waldyrious/.config/thefuck'), 'wait_command': 3, 'wait_slow_command': 15} DEBUG: Received output: /bin/sh: gut: command not found
|
Thank you for reporting, @waldyrious! Fix is on its way. |
Thank you for the quick reaction! Let me know if there's anything else I can do to help. |
@scorphus not sure if it makes sense to add this here, but |
No, it's the same case as the other one. BTW, in fact it's not really a bug. It's just that your path contains too many binaries that are closer to |
Update: I'll soon post a way to have |
@waldyrious are you able to test that anyway? Please see if it works for you. Also, please give me your thoughts and let me know if you need any additional info, I'll be more than happy to help. |
@scorphus I won't be able to test until Monday. Are there instructions somewhere for how to test your fork without messing with the current install? |
@waldyrious, there's no official instructions in TF's docs. However, you can use a temporary virtualenv to install TF from the fork. Then, you don't actually need to run it within your shell, just call it this way: |
* #833: do not require sudo on TravisCI * #N/A: Add Python dev releases to TravisCI pipeline Inspired by Brett Cannon's advise [1]. 1: https://snarky.ca/how-to-use-your-project-travis-to-help-test-python-itself/ * #837: try and kill proc and its children * #N/A: show shell information on `thefuck --version` * #N/A: omit default arguments to get_close_matches * #842: add settings var to control number of close matches * #N/A: remove `n` from the list of `get_closest`'s args
Fixed as of #846. |
* nvbn#833: do not require sudo on TravisCI * #N/A: Add Python dev releases to TravisCI pipeline Inspired by Brett Cannon's advise [1]. 1: https://snarky.ca/how-to-use-your-project-travis-to-help-test-python-itself/ * nvbn#837: try and kill proc and its children * #N/A: show shell information on `thefuck --version` * #N/A: omit default arguments to get_close_matches * nvbn#842: add settings var to control number of close matches * #N/A: remove `n` from the list of `get_closest`'s args
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0
):Your shell and its version (
bash
,zsh
, Windows PowerShell, etc.):Your system (Debian 7, ArchLinux, Windows, etc.):
How to reproduce the bug:
Type
gut push
in the terminal (The output is "zsh: command not found: gut"), then typefuck
. The resulting suggestions aregcut push
,gpt push
andgtr push
, rather thangit push
as I would expect.The output of The Fuck with
THEFUCK_DEBUG=true
exported (typically executeexport THEFUCK_DEBUG=true
in your shell before The Fuck):Anything else you think is relevant:
This correction seems to work for others, according to @vkotovv's comment here. So it may be specific to the environment I'm using (shell, OS, etc.)
The text was updated successfully, but these errors were encountered: