diff options
author | 2020-02-26 13:48:33 +0100 | |
---|---|---|
committer | 2020-02-26 13:48:33 +0100 | |
commit | 178ffef0226b45ad4b1862c7e9223cd539788bcc (patch) | |
tree | 765e23862f50479dd48ab312f6cb9aa0fa202a86 /bash/prompt.bash | |
parent | 724bb024d49f2883c186e80a016abd9b956bba96 (diff) | |
download | dotfiles-178ffef0226b45ad4b1862c7e9223cd539788bcc.tar.gz |
removed bashit
Diffstat (limited to 'bash/prompt.bash')
-rw-r--r-- | bash/prompt.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bash/prompt.bash b/bash/prompt.bash new file mode 100644 index 0000000..2510ea5 --- /dev/null +++ b/bash/prompt.bash @@ -0,0 +1,12 @@ +# vi:syntax=sh + +function prompt_command () { + local EXIT="$?" + if [ $EXIT -eq 0 ]; then + EXIT="" + fi + #PS1="\n${cyan}\h:$(virtualenv_prompt) ${reset_color} ${yellow}\w ${green}$(scm_prompt_info)\n${red}${EXIT} ${reset_color}→ " + PS1="\n${cyan}\h: ${reset_color} ${yellow}\w \n${red}${EXIT} ${reset_color}→ " +} + +PROMPT_COMMAND=prompt_command |