From f2b9c72a94373c76aa02429974c2ce806bff5dc8 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 23 Mar 2017 17:07:35 +0100 Subject: [PATCH] Try if thefuck is installed --- zsh/aliases.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 4de2c5c..991104e 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -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