From e70bbcca0f651340cede4e5cd7c766ebb9976e01 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Mon, 26 Feb 2018 09:58:26 -0800 Subject: [PATCH] Add a note about env vars to the super prompt. --- bash/super_prompt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/super_prompt.sh b/bash/super_prompt.sh index 65fec2b..77304b7 100644 --- a/bash/super_prompt.sh +++ b/bash/super_prompt.sh @@ -1,6 +1,9 @@ # Produces a nice, colorful 2-line prompt of the form: # [username@hostname:current_directory] (git_repo|branch) # $ +# +# You can add the output of arbitrary env vars with something like this: +# ${C_RED}\$(echo -n \$ENV_VAR_NAME)${C_NO} src_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source $src_dir/colorize.sh