check if thefuck is installed
This commit is contained in:
4
.bashrc
4
.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
|
||||
|
||||
Reference in New Issue
Block a user