From c4293d9c4ec2a54e9b9330730c0c63c30e06dc3e Mon Sep 17 00:00:00 2001 From: Heikki Ritola Date: Thu, 26 Feb 2015 15:37:50 +0200 Subject: [PATCH] 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