mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 16:28:58 +01:00
fuck: added a basic plugin for https://github.com/nvbn/thefuck
This commit is contained in:
parent
e38455bf4f
commit
0da9a4be25
6
plugins/fuck/fuck.plugin.zsh
Normal file
6
plugins/fuck/fuck.plugin.zsh
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user