From ae7c680c143e6a884d4dd8f536dabe6c53ae93f8 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 29 Oct 2006 15:25:15 +0100 Subject: [PATCH] * /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" --- debian/changelog | 3 +++ etc/skel/.hgrc | 2 +- etc/skel/.zshrc | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2e6bec2..91becd4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ grml-etc-core (0.1-29) unstable; urgency=low * /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 Sat, 28 Oct 2006 16:21:34 +0200 diff --git a/etc/skel/.hgrc b/etc/skel/.hgrc index 0263696..fa2886b 100644 --- a/etc/skel/.hgrc +++ b/etc/skel/.hgrc @@ -10,7 +10,7 @@ # for more details about possibilities for configuration of mercurial. [ui] -username = Michael Prokop +username = grml User # debug = true # verbose = true # merge = hgmergevim diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index a090111..3236350 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -82,6 +82,43 @@ 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. -- 2.1.4