From 4e9f952a27c8a1f548dacb021cdb222003b11e74 Mon Sep 17 00:00:00 2001 From: Karsten Hachmeister Date: Fri, 1 Jul 2022 21:34:02 +0200 Subject: [PATCH] check if thefuck is installed --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 437e2e8..1b20686 100644 --- a/.bashrc +++ b/.bashrc @@ -171,7 +171,9 @@ export NVM_DIR="$HOME/.nvm" source /usr/share/doc/fzf/examples/key-bindings.bash # thefuck -eval $(thefuck --alias) +if [[ -x "$(command -v thefuck)" ]]; then + eval $(thefuck --alias) +fi # Only load liquidprompt in interactive shells, not from a script or from scp [[ $- == *i* ]] && [ -f /usr/share/liquidprompt/liquidprompt ] && . /usr/share/liquidprompt/liquidprompt