# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sam Apr 21 23:57:20 CEST 2007 [mika]
+# Latest change: Son Apr 29 13:16:44 CEST 2007 [mika]
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l;
- setopt transient_rprompt # make sure to use right prompt only when not running a command
+ # make sure to use right prompt only when not running a command
+ is4 && setopt transient_rprompt
+
is4 && [[ -z $NOPRECMD ]] && precmd () {
[[ -n $NOPRECMD ]] && return 0
# allow manual overwriting of RPROMPT
- [[ -n $RPROMPT ]] && echo -n $'\ekzsh\e\\' && return 0
+ if [[ -n $RPROMPT ]] ; then
+ [[ $TERM == screen* ]] && echo -n $'\ekzsh\e\\'
+ return 0
+ fi
# just use DONTSETRPROMPT=1 to be able to overwrite RPROMPT
if [[ -z $DONTSETRPROMPT ]] ; then
if [[ -n $BATTERY ]] ; then
unsetopt prompt_cr
export PS1="%m%# "
nice -n -20 speechd-up
+ sleep 2
flite -o play -t "Finished setting up software synthesizer"
fi
'
}
_dchange() { _files -W /usr/share/doc -/ }
compdef _dchange dchange
-
+
# use "uchange <package-name>" to view upstream's changelog of the package:
uchange() {
if [ -r /usr/share/doc/${1}/changelog.gz ] ; then
}
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
+ }
+
# Switching shell safely and efficiently? http://www.zsh.org/mla/workers/2001/msg02410.html
# bash() {
# NO_SWITCH="yes" command bash "$@"