From c4293d9c4ec2a54e9b9330730c0c63c30e06dc3e Mon Sep 17 00:00:00 2001 From: Heikki Ritola Date: Thu, 26 Feb 2015 15:37:50 +0200 Subject: [PATCH 1/2] Add dulcie theme as a basic PS1 prompt with git info --- themes/dulcie/dulcie.theme.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 themes/dulcie/dulcie.theme.bash diff --git a/themes/dulcie/dulcie.theme.bash b/themes/dulcie/dulcie.theme.bash new file mode 100644 index 00000000..3e8d546d --- /dev/null +++ b/themes/dulcie/dulcie.theme.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Simplistic one-liner theme to display source control management info beside +# the ordinary bash prompt. + +prompt() { + PS1="${reset_color}[\u@\h \W]$(scm_prompt_info)${reset_color}\$ " +} + +PROMPT_COMMAND=prompt From 2740706c6f8d8f6a3f08ede0c8c00d46b723fb6a Mon Sep 17 00:00:00 2001 From: Heikki Ritola Date: Fri, 27 Feb 2015 14:06:15 +0200 Subject: [PATCH 2/2] Change order to emphasize current directory --- themes/dulcie/dulcie.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/dulcie/dulcie.theme.bash b/themes/dulcie/dulcie.theme.bash index 3e8d546d..267042ef 100644 --- a/themes/dulcie/dulcie.theme.bash +++ b/themes/dulcie/dulcie.theme.bash @@ -4,7 +4,7 @@ # the ordinary bash prompt. prompt() { - PS1="${reset_color}[\u@\h \W]$(scm_prompt_info)${reset_color}\$ " + PS1="${reset_color}[\u@\h$(scm_prompt_info)${reset_color} \W]\$ " } PROMPT_COMMAND=prompt