Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a multi-line doubletime theme

  • Loading branch information...
commit 5c29f7f1ff9e148b9ac51496eee88f23572f844c 1 parent 39f8ef9
@tswicegood tswicegood authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 themes/doubletime_multiline/doubletime_multiline.theme.bash
View
24 themes/doubletime_multiline/doubletime_multiline.theme.bash
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.