Mercurial > hg > zsh-env
changeset 5:2cd74a85976a
change the prompt when running in a screen session
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 29 Nov 2011 10:32:54 +0100 |
parents | cf017347e8bf |
children | ff5e785e7bf7 4263bbc594fe |
files | zshrc-linux-gnu |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/zshrc-linux-gnu Tue Nov 29 10:26:24 2011 +0100 +++ b/zshrc-linux-gnu Tue Nov 29 10:32:54 2011 +0100 @@ -4,7 +4,11 @@ # custom environment variables export LESS="-X" + PROMPT="%m%# " +if [[ "$TERM" =~ screen ]]; then + PROMPT="(s)%m%# " +fi # try to guess the distribution and include a special script for that local linux_distro="unknown"