X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=9837a97e3f380c9297fa79d51af7ee2b92850ddf;hb=cbbf17b3f869d4c25ca45f48ca5ee336687cafd8;hp=56acc4253306a4cb2dfc741a011e67cd33fe7852;hpb=9329fed8cdca843c1a3503f4b8d4f0eab52501a8;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 56acc42..9837a97 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -30,6 +30,13 @@ if [ -r ~/.zshrc -a -r ~/.zshrc.global -a ! -r ~/.zshrc.local ] ; then printf '-!-\n' fi +## Settings for umask +#if (( EUID == 0 )); then +# umask 002 +#else +# umask 022 +#fi + ## Now, we'll give a few examples of what you might want to use in your ## .zshrc.local file (just copy'n'paste and uncomment it there): @@ -64,6 +71,23 @@ fi #WORDCHARS='*?_[]~=&;!#$%^(){}' #WORDCHARS='${WORDCHARS:s@/@}' +# just type '...' to get '../..' +#rationalise-dot() { +#local MATCH +#if [[ $LBUFFER =~ '(^|/| | |'$'\n''|\||;|&)\.\.$' ]]; then +# LBUFFER+=/ +# zle self-insert +# zle self-insert +#else +# zle self-insert +#fi +#} +#zle -N rationalise-dot +#bindkey . rationalise-dot +## without this, typing a . aborts incremental history search +#bindkey -M isearch . self-insert + +#bindkey '\eq' push-line-or-edit ## some popular options ## @@ -130,9 +154,6 @@ fi ## ignore ~/.ssh/known_hosts entries #alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -o "PreferredAuthentications=keyboard-interactive"' -## a variation of our man2 alias -#alias man2='MANPAGER="sed -e G |less" TERMINFO=~/.terminfo TERM=mostlike /usr/bin/man' - ## global aliases (for those who like them) ## @@ -162,10 +183,8 @@ fi ## Set a search path for the cd builtin #cdpath=(.. ~) -## variations of our manzsh() function; pick you poison: +## variation of our manzsh() function; pick you poison: #manzsh() { /usr/bin/man zshall | most +/"$1" ; } -#[[ -f ~/.terminfo/m/mostlike ]] && MYLESS='LESS=C TERMINFO=~/.terminfo TERM=mostlike less' || MYLESS='less' -#manzsh() { man zshall | $MYLESS -p $1 ; } ## Switching shell safely and efficiently? http://www.zsh.org/mla/workers/2001/msg02410.html #bash() {