original name plus a time stamp attached. Symlinks and file attributes like mode,
ownership and timestamps are preserved.
-: **brltty()**
-The brltty(1) program provides a braille display, so a blind person can access
-the console screen. This wrapper function works around problems with some
-environments (f. e. utf8).
-
: **cdiff()**
Runs a recursive diff(1) over two given directories trying to find the
smallest set of changes. Three lines of context will be printed and binary
: **swiki()**
Searches articles in the german Wikipedia for the term given as argument.
-: **swspeak()**
-Sets up software synthesizer by calling swspeak-setup(8). Kernel boot option
-swspeak must be set for this to work.
-
: **trans()**
Translates a word from german to english (-D) or vice versa (-E).
fi
}
-# set up software synthesizer via speakup
-swspeak() {
- if [ -x /usr/sbin/swspeak-setup ] ; then
- setopt singlelinezle
- unsetopt prompt_cr
- export PS1="%m%# "
- /usr/sbin/swspeak-setup $@
- else # old version:
- 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
- sleep 2
- flite -o play -t "Finished setting up software synthesizer"
- fi
- fi
-}
-
# I like clean prompt, so provide simple way to get that
check_com 0 || alias 0='return 0'
}
functions peval &>/dev/null && alias calc=peval
-# brltty seems to have problems with utf8 environment and/or font Uni3-Terminus16 under
-# certain circumstances, so work around it, no matter which environment we have
-brltty() {
- if [[ -z "$DISPLAY" ]] ; then
- consolechars -f /usr/share/consolefonts/default8x16.psf.gz
- command brltty "$@"
- else
- command brltty "$@"
- fi
-}
-
# just press 'asdf' keys to toggle between dvorak and us keyboard layout
aoeu() {
echo -n 'Switching to us keyboard layout: '