summaryrefslogtreecommitdiff
path: root/theme.bash
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-01-26 20:16:38 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-01-26 20:16:38 +0100
commitaf53908079962c3208d2dbf6a2c98b5862f4c0b5 (patch)
tree93d7f8869afea004566bd90f354fb98acce62ce4 /theme.bash
parentb2a14f03dded5ae56eaa24ffe3dc271d8365dc68 (diff)
downloaddotfiles-af53908079962c3208d2dbf6a2c98b5862f4c0b5.tar.gz
custom bashit theme, vim changes
Diffstat (limited to 'theme.bash')
-rw-r--r--theme.bash26
1 files changed, 26 insertions, 0 deletions
diff --git a/theme.bash b/theme.bash
new file mode 100644
index 0000000..648dfb6
--- /dev/null
+++ b/theme.bash
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+SCM_THEME_PROMPT_DIRTY=" ${red}✗"
+SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
+SCM_THEME_PROMPT_PREFIX=" |"
+SCM_THEME_PROMPT_SUFFIX="${green}|"
+
+GIT_THEME_PROMPT_DIRTY=" ${red}✗"
+GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓"
+GIT_THEME_PROMPT_PREFIX=" ${green}|"
+GIT_THEME_PROMPT_SUFFIX="${green}|"
+
+RVM_THEME_PROMPT_PREFIX="|"
+RVM_THEME_PROMPT_SUFFIX="|"
+
+function prompt_command() {
+ #PS1="${bold_cyan}$(scm_char)${green}$(scm_prompt_info)${purple}$(ruby_version_prompt) ${yellow}\h ${reset_color}in ${green}\w ${reset_color}\n${green}→${reset_color} "
+ #PS1="\n${purple}\h: ${reset_color} ${green}\w\n${bold_cyan}$(scm_char)${green}$(scm_prompt_info) ${green}→${reset_color} "
+ #PS1="\n${cyan}\h: ${reset_color} ${yellow}\w\n${red}$(scm_char)${red}$(scm_prompt_info) ${green}→${reset_color} "
+ 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}→ "
+}
+
+safe_append_prompt_command prompt_command