Fix the error that appears when thefuck is not installed

This commit is contained in:
Jiří Štefka 2022-01-09 14:05:25 +01:00
parent f3f96c3aa4
commit 62b9457dea
2 changed files with 5 additions and 6 deletions

View file

@ -27,11 +27,6 @@ ex ()
fi fi
} }
test ()
{
echo test;
}
pacmanupdate () pacmanupdate ()
{ {
echo "Enter your country (like 'US' or 'CZ')"; echo "Enter your country (like 'US' or 'CZ')";

6
zshrc
View file

@ -37,7 +37,11 @@ export YSU_MESSAGE_POSITION="after"
[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc" [ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc"
# Initialize `thefuck` # Initialize `thefuck`
eval $(thefuck --alias) if command -v thefuck &> /dev/null
then
eval $(thefuck --alias)
fi
# Load ; should be last. # Load ; should be last.
source $HOME/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null source $HOME/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null