3 tiny changes in the zsh-setup, that ease generating the zsh-refcard.
authorFrank Terbeck <ft@grml.org>
Thu, 21 Jun 2007 18:18:21 +0000 (20:18 +0200)
committerFrank Terbeck <ft@grml.org>
Thu, 21 Jun 2007 18:18:21 +0000 (20:18 +0200)
These do not change any functionality at all.

etc/skel/.zshrc
etc/zsh/zshrc

index e8b85db..1a51fa1 100644 (file)
   [ -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
index 038ab43..60623f8 100644 (file)
@@ -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