Add a note about env vars to the super prompt.

This commit is contained in:
Anna Wiggins 2018-02-26 09:58:26 -08:00
parent 343f02ae75
commit e70bbcca0f
No known key found for this signature in database
GPG Key ID: 682893DD0448ED78

View File

@ -1,6 +1,9 @@
# Produces a nice, colorful 2-line prompt of the form: # Produces a nice, colorful 2-line prompt of the form:
# [username@hostname:current_directory] (git_repo|branch) # [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)" src_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source $src_dir/colorize.sh source $src_dir/colorize.sh