From 64528985fe4a6aa75e11207e00e1948efa3629f7 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Mon, 26 Mar 2012 11:01:05 -0500 Subject: [PATCH] Add a multiline doubletime theme that only shows Python --- .../doubletime_multiline_pyonly.theme.bash | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash diff --git a/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash b/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash new file mode 100644 index 0000000..d9d7c3a --- /dev/null +++ b/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.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) +\w +$(doubletime_scm_prompt)$reset_color $ " + PS2='> ' + PS4='+ ' +} + +PROMPT_COMMAND=prompt_setter -- 2.17.1