diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-17 22:42:16 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-17 22:42:16 +0000 |
commit | c894f695cc02f16af429c7506bb78354dcd9a1e3 (patch) | |
tree | 315daebee1a9ebc507790baf516863b0ff450f66 /Functions/Prompts/prompt_pws_setup | |
parent | adeceae8bfb6ed0a3fdea87cc4483c4d990f83fe (diff) | |
download | zsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.tar.gz zsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.tar.xz zsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.zip |
25095: thorough modernization of prompt theme system
Diffstat (limited to 'Functions/Prompts/prompt_pws_setup')
-rw-r--r-- | Functions/Prompts/prompt_pws_setup | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Functions/Prompts/prompt_pws_setup b/Functions/Prompts/prompt_pws_setup new file mode 100644 index 000000000..c9892141e --- /dev/null +++ b/Functions/Prompts/prompt_pws_setup @@ -0,0 +1,22 @@ +# pws prompt theme + +prompt_pws_help() { + cat <<'EOF' +Simple prompt which tries to display only the information you need. +- highlighted parenthesised status if last command had non-zero status +- bold + if shell is not at top level (may need tweaking if there + is another shell in the process history of your terminal) +- number of background jobs in square brackets if non-zero +- time in yellow on black, with Ding! on the hour. +I usually use this in a white on black terminal. +EOF +} + +prompt_pws_setup() { + PS1='%K{white}%F{red}%(?..(%?%))'\ +'%K{black}%F{white}%B%(2L.+.)%(1j.[%j].)'\ +'%F{yellow}%(t.Ding!.%D{%L:%M})'\ +'%f%k%b%# ' +} + +prompt_pws_setup "$@" |