Fix the error that appears when thefuck
is not installed
This commit is contained in:
parent
f3f96c3aa4
commit
62b9457dea
5
aliasrc
5
aliasrc
@ -27,11 +27,6 @@ ex ()
|
||||
fi
|
||||
}
|
||||
|
||||
test ()
|
||||
{
|
||||
echo test;
|
||||
}
|
||||
|
||||
pacmanupdate ()
|
||||
{
|
||||
echo "Enter your country (like 'US' or 'CZ')";
|
||||
|
6
zshrc
6
zshrc
@ -37,7 +37,11 @@ export YSU_MESSAGE_POSITION="after"
|
||||
[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc"
|
||||
|
||||
# Initialize `thefuck`
|
||||
eval $(thefuck --alias)
|
||||
if command -v thefuck &> /dev/null
|
||||
then
|
||||
eval $(thefuck --alias)
|
||||
fi
|
||||
|
||||
|
||||
# Load ; should be last.
|
||||
source $HOME/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null
|
||||
|
Reference in New Issue
Block a user