Mercurial > hg > zsh-env
diff zshrc @ 10:6c4ab833e66d
emulate tcsh's subprocess behaviour: automatically nohup the jobs, do not warn when exiting the shell
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 02 Dec 2011 15:27:54 +0100 |
parents | 7364a3399187 |
children | 13e0030ddaad |
line wrap: on
line diff
--- a/zshrc Thu Dec 01 09:18:41 2011 +0100 +++ b/zshrc Fri Dec 02 15:27:54 2011 +0100 @@ -21,6 +21,16 @@ mcd() { mkdir $1; cd $1 } psg() { ps auxww | grep -v grep | grep -i "$@" } +# no history handling for now ... or find a better way to save history per shell not across all shells +export HISTFILE= + +# emulate tcsh's behaviour for forked processes: do not warn, do not kill when shell is closed +setopt nohup +setopt no_check_jobs + +# $HOST can either be just the host name or the FQDN. Standardize on the raw host name +export HOST=`echo $HOST | awk -F '.' '{ print $1 }'` + # utility function that is used by various other modules removeFromPath() { search_term="$1" @@ -41,12 +51,6 @@ echo "${clean_path}" } -# no history handling for now ... or find a better way to save history per shell not across all shells -export HISTFILE= - -# $HOST can either be just the host name or the FQDN. Standardize on the raw host name -export HOST=`echo $HOST | awk -F '.' '{ print $1 }'` - # include a zshrc per OS type local os_zshrc=$HOME/.zsh-env/zshrc-$OSTYPE if [ -f ${os_zshrc} ]; then