mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 15:30:15 +08:00
Thefuck: replaced static alias with eval "$(thefuck-alias)"
This commit is contained in:
parent
8e8a13398e
commit
54e27406dc
@ -3,8 +3,8 @@ if [[ -z $commands[thefuck] ]]; then
|
||||
return -1
|
||||
fi
|
||||
|
||||
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
|
||||
alias FUCK='fuck'
|
||||
# Register alias
|
||||
eval "$(thefuck-alias)"
|
||||
|
||||
fuck-command-line() {
|
||||
FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
|
||||
|
Loading…
Reference in New Issue
Block a user