From 178ffef0226b45ad4b1862c7e9223cd539788bcc Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 26 Feb 2020 13:48:33 +0100 Subject: removed bashit --- bash/prompt.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bash/prompt.bash (limited to 'bash/prompt.bash') 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 -- cgit v1.2.3