From 77190bf26c5ea55cfc3d4f7da080806cf022e70d Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Thu, 21 Jun 2007 20:18:21 +0200 Subject: [PATCH] 3 tiny changes in the zsh-setup, that ease generating the zsh-refcard. These do not change any functionality at all. --- etc/skel/.zshrc | 6 ++++-- etc/zsh/zshrc | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index e8b85db..1a51fa1 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -217,8 +217,10 @@ [ -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 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 038ab43..60623f8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -406,7 +406,7 @@ fi # 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!) @@ -864,7 +864,7 @@ Enjoy your grml system with the zsh!$reset_color" } 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 -- 2.1.4