]> arthur.barton.de Git - OhMyZshExtensions.git/commitdiff
Add "thefuck" plugin: Alias "fuck" to the "thefuck" command
authorAlexander Barton <alex@barton.de>
Tue, 26 May 2015 21:06:16 +0000 (23:06 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 26 May 2015 21:06:16 +0000 (23:06 +0200)
plugins/thefuck/thefuck.plugin.zsh [new file with mode: 0644]

diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
new file mode 100644 (file)
index 0000000..f2cc798
--- /dev/null
@@ -0,0 +1,4 @@
+# thefuck.plugin.zsh
+# 2015-05-26, alex@barton.de
+
+alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'