X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=4515b9db673b5dd3d9646ab6a22d024a65e312ef;hb=refs%2Ftags%2F0.2.32;hp=c764991edd47c834896fbea0f06fb6f068a4bd3d;hpb=0e8f489f9664279e8d43548896c04f8db365da35;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c764991..4515b9d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Feb 26 18:52:32 CET 2007 [mika] +# Latest change: Mit Mär 14 15:48:34 CET 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -146,6 +146,17 @@ fi zle -N insert-unicode-char bindkey '^Xi' insert-unicode-char +# just type 'cd ...' to get 'cd ../..' +# rationalise-dot() { +# if [[ $LBUFFER = *.. ]]; then +# LBUFFER+=/.. +# else +# LBUFFER+=. +# fi +# } +# zle -N rationalise-dot +# bindkey . rationalise-dot + # bindkey '\eq' push-line-or-edit # }}} @@ -566,7 +577,20 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias rd='rmdir' alias md='mkdir' - alias swspeak="setopt singlelinezle ; unsetopt prompt_cr ; export PS1='%m%# ' ; speechd-up" # set up software synth. +# set up software synthesizer via speakup + alias swspeak=' + aumix -w 90 -v 90 -p 90 -m 90 + if ! [ -r /dev/softsynth ] ; then + flite -o play -t "Sorry, software synthesizer not available. Did you boot with swspeak bootoption?" + return 1 + else + setopt singlelinezle + unsetopt prompt_cr + export PS1="%m%# " + nice -n -20 speechd-up + flite -o play -t "Finished setting up software synthesizer" + fi + ' # I like clean prompt, so provide simple way to get that alias 0 &>/dev/null || functions 0 &>/dev/null || alias 0='return 0'