From 8262ba87242851bec9020211659121712c95533b Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Mon, 22 Apr 2019 23:01:08 +0100 Subject: [PATCH] Make `thefuck` conditional --- zshrc.local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc.local b/zshrc.local index 4187480..95d85ef 100644 --- a/zshrc.local +++ b/zshrc.local @@ -48,6 +48,8 @@ fi # Environment config [[ -f ~/.zshrc.env ]] && source ~/.zshrc.env -eval "$(thefuck --alias)" +if (( $+commands[thefuck] )); then + eval "$(thefuck --alias)" +fi export PATH="$HOME/.bin:$PATH"