From d1f5648b6bb00dc5e9bd6308a19f7473781d79d6 Mon Sep 17 00:00:00 2001 From: Beorn Facchini Date: Sun, 3 Jul 2016 11:51:08 +1000 Subject: [PATCH] Bash-it theme inspired by oh-my-zsh tonotdo. --- themes/tonotdo/tonotdo.theme.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 themes/tonotdo/tonotdo.theme.bash diff --git a/themes/tonotdo/tonotdo.theme.bash b/themes/tonotdo/tonotdo.theme.bash new file mode 100644 index 00000000..a1e18ba6 --- /dev/null +++ b/themes/tonotdo/tonotdo.theme.bash @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +SCM_THEME_PROMPT_PREFIX=" ${purple}" +SCM_THEME_PROMPT_SUFFIX=" ${normal}" +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${green}✓" +SCM_GIT_SHOW_DETAILS="false" + +function prompt_command() { + PS1="${yellow}\u${normal}${cyan}@\h${normal}${purple} ${normal}${green}\w${normal}$(scm_prompt_info)> " +} + +PROMPT_COMMAND=prompt_command