X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=4515b9db673b5dd3d9646ab6a22d024a65e312ef;hb=7058d4b2232ebc4ba737bcb46f58476d7a4e4598;hp=ba1e3b45b5dfc60949d772f635b6cee2faf48b05;hpb=f3e7f85dab45efdc1091e005a7e5f27ab0659bcf;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ba1e3b4..4515b9d 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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'