Mercurial > hg > zsh-env
comparison zshrc-linux-gnu @ 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 | 8b245298349a |
children | fa52868da3d4 |
comparison
equal
deleted
inserted
replaced
4:cf017347e8bf | 5:2cd74a85976a |
---|---|
2 # zshrc-linux-gnu: zsh env for various linux distributions | 2 # zshrc-linux-gnu: zsh env for various linux distributions |
3 # | 3 # |
4 | 4 |
5 # custom environment variables | 5 # custom environment variables |
6 export LESS="-X" | 6 export LESS="-X" |
7 | |
7 PROMPT="%m%# " | 8 PROMPT="%m%# " |
9 if [[ "$TERM" =~ screen ]]; then | |
10 PROMPT="(s)%m%# " | |
11 fi | |
8 | 12 |
9 # try to guess the distribution and include a special script for that | 13 # try to guess the distribution and include a special script for that |
10 local linux_distro="unknown" | 14 local linux_distro="unknown" |
11 if [ -d /usr/portage ]; then | 15 if [ -d /usr/portage ]; then |
12 linux_distro="gentoo" | 16 linux_distro="gentoo" |