mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-24 00:59:51 +00:00
7 lines
197 B
Bash
7 lines
197 B
Bash
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
|