Try if thefuck is installed

This commit is contained in:
Thomas FORGIONE 2017-03-23 17:07:35 +01:00
parent 47e1f4bf86
commit f2b9c72a94
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
1 changed files with 6 additions and 1 deletions

View File

@ -42,4 +42,9 @@ alias lsd="ls"
alias j="jump"
# Initialize thefuck
eval $(thefuck --alias)
command -v thefuck > /dev/null 2>&1
# fuck aliases
if [ $? -eq 0 ]; then
eval $(thefuck --alias)
fi