* /etc/zsh/zshrc: added isgrmlsmall() and set $EDITOR
according to grml flavour, thanks - Frank Terbeck!
+ * /etc/skel/.zshrc: add http://zshwiki.org/home/examples/zleiab
+ but do not activate it by default
+ * /etc/skel/.hgrc: adjust username for "generic user"
-- Michael Prokop <mika@grml.org> Sat, 28 Oct 2006 16:21:34 +0200
# for more details about possibilities for configuration of mercurial.
[ui]
-username = Michael Prokop <mika@grml.org>
+username = grml User <repos@grml.org.invalid>
# debug = true
# verbose = true
# merge = hgmergevim
alias -g V='| vim -'
# }}}
+## another approach for global aliases: cloning vim's abbreviation feature {{{
+# http://zshwiki.org/home/examples/zleiab
+# typeset -A abbreviations
+# abbreviations=(
+# "Im" "| more"
+# "Ia" "| awk"
+# "Ig" "| grep"
+# "Ieg" "| egrep"
+# "Iag" "| agrep"
+# "Igr" "| groff -s -p -t -e -Tlatin1 -mandoc"
+# "Ip" "| $PAGER"
+# "Ih" "| head"
+# "Ik" "| keep"
+# "It" "| tail"
+# "Is" "| sort"
+# "Iv" "| ${VISUAL:-${EDITOR}}"
+# "Iw" "| wc"
+# "Ix" "| xargs"
+# )
+#
+# magic-abbrev-expand() {
+# local MATCH
+# LBUFFER=${LBUFFER%%(#m)[_a-zA-Z0-9]#}
+# LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
+# zle self-insert
+# }
+#
+# no-magic-abbrev-expand() {
+# LBUFFER+=' '
+# }
+#
+# zle -N magic-abbrev-expand
+# zle -N no-magic-abbrev-expand
+# bindkey " " magic-abbrev-expand
+# bindkey "^x " no-magic-abbrev-expand
+# }}}
+
## aliases {{{
# Xterm resizing-fu.