summaryrefslogtreecommitdiff
path: root/plugins/fuck
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fuck')
-rw-r--r--plugins/fuck/fuck.plugin.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/fuck/fuck.plugin.zsh b/plugins/fuck/fuck.plugin.zsh
new file mode 100644
index 000000000..1a3b474fc
--- /dev/null
+++ b/plugins/fuck/fuck.plugin.zsh
@@ -0,0 +1,6 @@
+if [ $commands[thefuck] ]; then
+ alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
+ alias FUCK='fuck'
+else
+ echo 'thefuck is not installed, you should "pip install thefuck" first'
+fi