[ -d ~/.terminfo/ ] && alias man='TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man'
# check whether Debian's package management (dpkg) is running
- #a2# Check whether a dpkg instance is currently running
- type salias &>/dev/null && salias check_dpkg_running="dpkg_running"
+ if type salias &>/dev/null ; then
+ #a2# Check whether a dpkg instance is currently running
+ salias check_dpkg_running="dpkg_running"
+ fi
# work around non utf8 capable software in utf environment
if type isutfenv &>/dev/null ; then
# press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd
_bkdate() { BUFFER="$BUFFER$(date '+%F')"; CURSOR=$#BUFFER; }
#k# Insert a timestamp on the commandline (yyyy-mm-dd)
- bindkey '\C-ed' _bkdate
+ bindkey '^Ed' _bkdate
zle -N _bkdate
# press esc-m for inserting last typed word again (thanks to caphuso!)
}
isgrmlcd && alias su="sudo -s" # get a root shell
- #a1# Take a look at the syslog: \kbd{$PAGER /var/log/syslog}
+ #a1# Take a look at the syslog: \kbd{\$PAGER /var/log/syslog}
alias llog="$PAGER /var/log/syslog" # take a look at the syslog
#a1# Take a look at the syslog: \kbd{tail -f /var/log/syslog}
alias tlog="tail -f /var/log/syslog" # follow the syslog