From ec2245abb1ef1d9a2510b1de3e5b2cf197bfef21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Wed, 19 Feb 2014 15:45:23 +0200 Subject: [PATCH 1/2] color fix for light themes --- themes/duru/duru.theme.bash | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 themes/duru/duru.theme.bash diff --git a/themes/duru/duru.theme.bash b/themes/duru/duru.theme.bash new file mode 100644 index 00000000..a8b871aa --- /dev/null +++ b/themes/duru/duru.theme.bash @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +SCM_THEME_PROMPT_PREFIX="${cyan} at ${green}" +SCM_THEME_PROMPT_SUFFIX="" +SCM_THEME_PROMPT_DIRTY=" ${red}with changes" +SCM_THEME_PROMPT_CLEAN="" + +venv() { + if [ ! -z "$VIRTUAL_ENV" ] + then + local env=$VIRTUAL_ENV + echo "${gray} on ${orange}${env##*/} " + fi +} + +last_two_dirs() { + pwd|rev|awk -F / '{print $1,$2}'|rev|sed s_\ _/_|sed "s|$(sed 's,\/,,'<<<$HOME)|~|g" +} + +prompt() { + PS1="${yellow}# ${reset_color}$(last_two_dirs)$(scm_prompt_info)${reset_color}$(venv)${reset_color} ${cyan}\n> ${reset_color}" +} + +PROMPT_COMMAND=prompt From acc0cf26139be82b11c42eacca3775506927fa62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Thu, 20 Feb 2014 13:07:33 +0200 Subject: [PATCH 2/2] fix wordings --- themes/duru/duru.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/duru/duru.theme.bash b/themes/duru/duru.theme.bash index a8b871aa..f1b47e92 100644 --- a/themes/duru/duru.theme.bash +++ b/themes/duru/duru.theme.bash @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCM_THEME_PROMPT_PREFIX="${cyan} at ${green}" +SCM_THEME_PROMPT_PREFIX="${cyan} on ${green}" SCM_THEME_PROMPT_SUFFIX="" SCM_THEME_PROMPT_DIRTY=" ${red}with changes" SCM_THEME_PROMPT_CLEAN="" @@ -9,7 +9,7 @@ venv() { if [ ! -z "$VIRTUAL_ENV" ] then local env=$VIRTUAL_ENV - echo "${gray} on ${orange}${env##*/} " + echo "${gray} in ${orange}${env##*/} " fi }