]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "thefuck" plugin
authorAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:13:01 +0000 (04:13 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 18 Jul 2015 02:13:01 +0000 (04:13 +0200)
plugins/thefuck/thefuck.zshrc [new file with mode: 0644]

diff --git a/plugins/thefuck/thefuck.zshrc b/plugins/thefuck/thefuck.zshrc
new file mode 100644 (file)
index 0000000..e37f76e
--- /dev/null
@@ -0,0 +1,7 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# thefuck.zshrc: Programatically correct mistyped console commands
+
+# Make sure that "thefuck(1)" is installed
+(( $+commands[thefuck] )) || return
+
+alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'