Thefuck: replaced static alias with `eval "$(thefuck-alias)"`

This commit is contained in:
Roland Chernov 2015-07-23 20:10:31 +09:00
parent 8e8a13398e
commit 54e27406dc
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ if [[ -z $commands[thefuck] ]]; then
return -1 return -1
fi fi
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' # Register alias
alias FUCK='fuck' eval "$(thefuck-alias)"
fuck-command-line() { fuck-command-line() {
FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)" FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"