# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Fre Mai 11 00:35:57 CEST 2007 [mika]
+# Latest change: Don Mai 17 15:08:21 CEST 2007 [mika]
################################################################################
# source ~/.zshrc.global {{{
fi
# }}}
+# autoloading stuff {{{
+ # associate types and extensions:
+ autoload zsh-mime-setup && zsh-mime-setup
+# }}}
+
# completion system {{{
# just make sure it is loaded in this file too
type compinit &>/dev/null || { autoload -U compinit && compinit }
# ignore ~/.ssh/known_hosts entries
# alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -o "PreferredAuthentications=keyboard-interactive"'
alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
+ alias insecscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
# use colors when browsing man pages (if not using pinfo or PAGER=most)
[ -d ~/.terminfo/ ] && alias man='TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man'
# check whether Debian's package management (dpkg) is running
- alias check_dpkg_running="$SUDO dpkg_running"
+ salias check_dpkg_running="dpkg_running"
# work around non utf8 capable software in utf environment
if [ -x /usr/bin/mrxvt ] ; then
| sed 's/value=//;s/"//g'
}
+# change fluxbox keys from 'Alt-#' to 'Alt-F#' and vice versa
+ fluxkey-change() {
+ [ -n "$FLUXKEYS" ] || local FLUXKEYS="$HOME/.fluxbox/keys"
+ if ! [ -r "$FLUXKEYS" ] ; then
+ echo "Sorry, \$FLUXKEYS file $FLUXKEYS could not be read - nothing to be done."
+ return 1
+ else
+ if grep -q 'Mod1 F[0-9] :Workspace [0-9]' $FLUXKEYS ; then
+ echo -n 'Switching to Alt-# mode in ~/.fluxbox/keys: '
+ sed -i -e 's|^\(Mod[0-9]\+[: space :]\+\)F\([0-9]\+[: space :]\+:Workspace.*\)|\1\2|' $FLUXKEYS && echo done || echo failed
+ elif grep -q 'Mod1 [0-9] :Workspace [0-9]' $FLUXKEYS ; then
+ echo -n 'Switching to Alt-F# mode in ~/.fluxbox/keys: '
+ sed -i -e 's|^\(Mod[0-9]\+[: space :]\+\)\([0-9]\+[: space :]\+:Workspace.*\)|\1F\2|' $FLUXKEYS && echo done || echo failed
+ else
+ echo 'Sorry, do not know what to do.'
+ return 1
+ fi
+ fi
+ }
+
# }}}
# mercurial related stuff {{{