Mercurial > hg > zsh-env
changeset 15:0a35309e7504
Automated merge with https://xanthippe/hg/zsh-env
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 03 Dec 2011 10:43:57 +0100 |
parents | 6c4ab833e66d (diff) 44cb360e19b6 (current diff) |
children | c09a2e38969b |
files | |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/zshrc Sat Dec 03 10:43:51 2011 +0100 +++ b/zshrc Sat Dec 03 10:43:57 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,9 +51,6 @@ echo "${clean_path}" } -# $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