Skip to content

Conversation

MasterNayru
Copy link
Contributor

It would appear that the alias printed out in v3.24 has a variable scoping issue with the TF_HISTORY variable. The bash alias exports TF_HISTORY and does an unset on it afterwards, which seems to make it work fine. With the zsh alias in its current form, os.environ never sees the TF_HISTORY variable, and since $TF_PREVIOUS is no longer being fed into thefuck it just prints out the usage message. I have tested this change locally and it seems to make it work again.

This should resolve issue #725

@MasterNayru MasterNayru force-pushed the fix-zsh-alias branch 4 times, most recently from 8f8aed4 to 082f2f1 Compare November 16, 2017 05:34
@nvbn nvbn merged commit 97123db into nvbn:master Nov 16, 2017
@nvbn
Copy link
Owner

nvbn commented Nov 16, 2017

Thanks!

riley-martine pushed a commit to riley-martine/thefuck that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants