summaryrefslogtreecommitdiff
path: root/plugins/thefuck
diff options
context:
space:
mode:
authorRoland Chernov <mail@9241406380.org>2015-07-23 20:10:31 +0900
committerRoland Chernov <mail@9241406380.org>2015-07-23 20:53:56 +0900
commit54e27406dcc2fea55432595f9ec01502da8e4468 (patch)
tree1b0885b983346cb00ceac0faf04b655a06a6f25b /plugins/thefuck
parent8e8a13398e71b969dc39189c0fedcc4733a911df (diff)
downloadzsh-54e27406dcc2fea55432595f9ec01502da8e4468.tar.gz
zsh-54e27406dcc2fea55432595f9ec01502da8e4468.tar.bz2
zsh-54e27406dcc2fea55432595f9ec01502da8e4468.zip
Thefuck: replaced static alias with `eval "$(thefuck-alias)"`
Diffstat (limited to 'plugins/thefuck')
-rw-r--r--plugins/thefuck/thefuck.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
index 86ec9901b..10467d337 100644
--- a/plugins/thefuck/thefuck.plugin.zsh
+++ b/plugins/thefuck/thefuck.plugin.zsh
@@ -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)"