From 0d3532c4e0929ddafb50b61fab0637a6974fc791 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 4 Mar 2018 17:50:49 -0500 Subject: conditionalize fancy-prompt config on being installed so that we don't end up promptless on a new system before installing it --- bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index f4caa0b..83c2145 100644 --- a/bashrc +++ b/bashrc @@ -54,7 +54,9 @@ source ~/.sh/fzf/shell/completion.bash source ~/.sh/fzf/shell/key-bindings.bash # }}} # prompt {{{ -export PROMPT_COMMAND="__err=\$?;$PROMPT_COMMAND;PS1=\"\$(fancy-prompt --prompt-escape bash "\$__err")\"" +if type fancy-prompt > /dev/null 2>&1; then + export PROMPT_COMMAND="__err=\$?;$PROMPT_COMMAND;PS1=\"\$(fancy-prompt --prompt-escape bash "\$__err")\"" +fi # }}} # }}} # fortune {{{ -- cgit v1.2.3-54-g00ecf