1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-08 21:28:24 +08:00
ohmyzsh-mirror/plugins/fuck/fuck.plugin.zsh
2015-07-22 15:01:15 +09:00

7 lines
202 B
Bash

if [[ -n $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