Mercurial > hg > zsh-env
changeset 16:c09a2e38969b
Automated merge with https://xanthippe/hg/zsh-env
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 09 Dec 2011 08:18:26 +0100 |
parents | f6fdf0fe99c3 (diff) 0a35309e7504 (current diff) |
children | 5f21c59d58e4 |
files | |
diffstat | 2 files changed, 33 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zshrc Sat Dec 03 10:43:57 2011 +0100 +++ b/zshrc Fri Dec 09 08:18:26 2011 +0100 @@ -28,8 +28,11 @@ 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 }'` +# ignore duplicates in history +setopt hist_ignore_all_dups + +# get rid of the silly "zsh: sure you want to delete all the files in ..." message +unsetopt normstarsilent # utility function that is used by various other modules removeFromPath() { @@ -51,6 +54,9 @@ 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zshrc-quad64 Fri Dec 09 08:18:26 2011 +0100 @@ -0,0 +1,25 @@ +# +# zshrc for quad64 +# + +. $HOME/.zsh-env/zshrc-jdk +. $HOME/.zsh-env/zshrc-maven + +export PATH="$HOME/bin:${PATH}" +export PGUSER=postgres + +# +# aliases +# +alias bzip=pbzip2 +alias cvscheck='sh -c "cvs -n update 2>&1 | grep \?"' +alias cvsupdate='cvs -q -z3 update -dP | egrep -v "^\?.*\.d"' +alias df="df -h" +alias env="env | sort | $PAGER" +alias host=hostx +alias top=htop + +# +# functions to be used directly from the command line +# +cvsrm() { rm "$@"; cvs remove "$@" }