0da9a4be25d0feb968b21645a0654ea499f0cc9d

Author
Cristian Măgherușan-Stanciu <cristian.magherusan-stanciu@here.com>
Committer
Roland Chernov <it5@amur.net>
Date

Message

fuck: added a basic plugin for https://github.com/nvbn/thefuck

Diff

 1diff --git a/plugins/fuck/fuck.plugin.zsh b/plugins/fuck/fuck.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..1a3b474fc7d7b0113addda50ec1ee63f07a2c871
 4--- /dev/null
 5+++ b/plugins/fuck/fuck.plugin.zsh
 6@@ -0,0 +1,6 @@
 7+if [ $commands[thefuck] ]; then
 8+  alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
 9+  alias FUCK='fuck'
10+else
11+  echo 'thefuck is not installed, you should "pip install thefuck" first'
12+fi