]> arthur.barton.de Git - ax-zsh.git/commitdiff
thefuck: Use "thefuck --alias" for initialization
authorAlexander Barton <alex@barton.de>
Sun, 20 Sep 2015 18:34:10 +0000 (20:34 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 20 Sep 2015 18:34:10 +0000 (20:34 +0200)
plugins/thefuck/thefuck.zshrc

index e37f76ec8373f99f49a1bd4f8e63dd870b867424..171f8fa106cb889e4b8e357c4baaaf8273de3bd2 100644 (file)
@@ -4,4 +4,4 @@
 # Make sure that "thefuck(1)" is installed
 (( $+commands[thefuck] )) || return
 
-alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+eval "$(thefuck --alias)"