add a multi-line doubletime theme
authorTravis Swicegood <development@domain51.com>
Tue, 13 Mar 2012 14:23:27 +0000 (07:23 -0700)
committerTravis Swicegood <development@domain51.com>
Tue, 13 Mar 2012 14:23:27 +0000 (07:23 -0700)
themes/doubletime_multiline/doubletime_multiline.theme.bash [new file with mode: 0644]

diff --git a/themes/doubletime_multiline/doubletime_multiline.theme.bash b/themes/doubletime_multiline/doubletime_multiline.theme.bash
new file mode 100644 (file)
index 0000000..b2215a8
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+source "$BASH_IT/themes/doubletime/doubletime.theme.bash"
+
+function prompt_setter() {
+  # Save history
+  history -a
+  history -c
+  history -r
+  if [[ -z "$THEME_PROMPT_CLOCK_FORMAT" ]]
+  then
+      clock="\t"
+  else
+      clock=$THEME_PROMPT_CLOCK_FORMAT
+  fi
+  PS1="
+$clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt)$(ruby_version_prompt)
+\w
+$(doubletime_scm_prompt)$reset_color $ "
+  PS2='> '
+  PS4='+ '
+}
+
+PROMPT_COMMAND=prompt_setter