thefuck: No longer works with an alias to “git push”
Hi,
I recently installed a new system, but kept my old oh-my-zsh aliases.
Before, I could type gp
(alias for git push
), and use thefuck to do the gp --set-upstream origin branchname
for me. However, now the suggestion is gyp
:
dev-ipfs@particle ~/rust-multiaddr fix-protocol-codes gp
fatal: The current branch fix-protocol-codes has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin fix-protocol-codes
✘ dev-ipfs@particle ~/rust-multiaddr fix-protocol-codes f
gyp [enter/↑/↓/ctrl+c]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 25 (4 by maintainers)
Commits related to this issue
- #549: Fix aliases with bash — committed to nvbn/thefuck by nvbn 7 years ago
- #549: Fix aliases with bash — committed to riley-martine/thefuck by nvbn 7 years ago
@scorphus Thanks, that fixed it!
You were right, I had an old
alias fuck='eval $(thefuck $(fc -ln -1)); history -r'
in my .zshrc, replacing that witheval $(thefuck --alias)
gives this:Just tried out today, and seems fixed with 3.25 AFAIC this issue can be closed