X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=4515b9db673b5dd3d9646ab6a22d024a65e312ef;hb=7058d4b2232ebc4ba737bcb46f58476d7a4e4598;hp=1fb1f240c5bf2547019f0c736978fd871db951e5;hpb=bf839e5e3054fcc7f20f49eb1630a7dc9ed49b13;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 1fb1f24..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: Mit Mär 14 15:41:03 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, @@ -147,15 +147,15 @@ fi 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 +# rationalise-dot() { +# if [[ $LBUFFER = *.. ]]; then +# LBUFFER+=/.. +# else +# LBUFFER+=. +# fi +# } +# zle -N rationalise-dot +# bindkey . rationalise-dot # bindkey '\eq' push-line-or-edit # }}} @@ -577,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'