54e27406dcc2fea55432595f9ec01502da8e4468

Author
Roland Chernov <mail@9241406380.org>
Committer
Roland Chernov <mail@9241406380.org>
Date

Message

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

Diff

 1diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
 2index 86ec9901b17ca0d92a012d4774dd1391b29b1e1c..10467d33777846c781f7e21e45398d958b1b2da6 100644
 3--- a/plugins/thefuck/thefuck.plugin.zsh
 4+++ b/plugins/thefuck/thefuck.plugin.zsh
 5@@ -3,8 +3,8 @@ if [[ -z $commands[thefuck] ]]; then
 6     return -1
 7 fi
 8 
 9-alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
10-alias FUCK='fuck'
11+# Register alias
12+eval "$(thefuck-alias)"
13 
14 fuck-command-line() {
15     FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"