]> git.donarmstrong.com Git - zsh.git/commitdiff
Merge remote-tracking branch 'madduck/master'
authorDon Armstrong <don@donarmstrong.com>
Sun, 21 Sep 2014 22:20:08 +0000 (15:20 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 21 Sep 2014 22:20:08 +0000 (15:20 -0700)
Conflicts:
.zsh/zshrc/30_aliases
.zsh/zshrc/79_bindkeys

47 files changed:
.zsh/dircolors
.zsh/logging
.zsh/rcsstub
.zsh/sourcedir
.zsh/util
.zsh/zlogin/10_shlvl
.zsh/zlogin/60_mime
.zsh/zlogout/90_sudo
.zsh/zlogout/99_cls
.zsh/zprofile/00_ulimit
.zsh/zprofile/10_locale
.zsh/zprofile/40_zcompile
.zsh/zshenv/00_rdirs
.zsh/zshenv/01_fpath
.zsh/zshenv/01_path
.zsh/zshenv/10_zvars
.zsh/zshenv/30_codeinput [new file with mode: 0644]
.zsh/zshenv/40_editor
.zsh/zshenv/45_postgresql [new file with mode: 0644]
.zsh/zshenv/80_debian
.zsh/zshenv/80_pagers
.zsh/zshenv/80_texmf
.zsh/zshrc/00_autoload
.zsh/zshrc/00_recompile
.zsh/zshrc/00_varsetup
.zsh/zshrc/19_dircolors
.zsh/zshrc/20_compsys
.zsh/zshrc/20_dirhashes
.zsh/zshrc/30_aliases
.zsh/zshrc/30_aliases_bugfix
.zsh/zshrc/39_tempfuncs
.zsh/zshrc/60_vcsprompt
.zsh/zshrc/64_ssh [new file with mode: 0644]
.zsh/zshrc/75_vcsinfo
.zsh/zshrc/79_bindkeys
.zsh/zshrc/80_abbreviations
.zsh/zshrc/80_history
.zsh/zshrc/80_inplacemkdir
.zsh/zshrc/80_zle
.zsh/zshrc/85_prompt
.zsh/zshrc/85_termfonts
.zsh/zshrc/85_xtermtitle
.zsh/zshrc/90_cleanfiles [deleted file]
.zsh/zshrc/95_fortune.disabled
.zsh/zshrc/95_watch
.zsh/zshrc/99_TODO
.zsh/zshrc/99_hookfunctions

index 476c4e675468a255d9993f5c20ea041be48c4866..c2cd451398eff1cd883f61faf91d8af381f9f27e 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # dircolors
 #
 # colours for directory listings for normal people
@@ -11,8 +12,7 @@
 ### BEGIN dircolors --print-database output ##################################
 # Configuration file for dircolors, a utility to help you set the
 # LS_COLORS environment variable used by GNU ls with the --color option.
-# Copyright (C) 1996, 1999-2008
-# Free Software Foundation, Inc.
+# Copyright (C) 1996, 1999-2011 Free Software Foundation, Inc.
 # Copying and distribution of this file, with or without modification,
 # are permitted provided the copyright notice and this notice are preserved.
 # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
@@ -38,6 +38,7 @@ TERM dtterm
 TERM eterm-color
 TERM gnome
 TERM gnome-256color
+TERM jfbterm
 TERM konsole
 TERM kterm
 TERM linux
@@ -46,14 +47,21 @@ TERM mach-color
 TERM mlterm
 TERM putty
 TERM rxvt
+TERM rxvt-256color
 TERM rxvt-cygwin
 TERM rxvt-cygwin-native
 TERM rxvt-unicode
+TERM rxvt-unicode-256color
+TERM rxvt-unicode256
 TERM screen
 TERM screen-256color
+TERM screen-256color-bce
 TERM screen-bce
 TERM screen-w
+TERM screen.Eterm
+TERM screen.rxvt
 TERM screen.linux
+TERM terminator
 TERM vt100
 TERM xterm
 TERM xterm-16color
@@ -69,11 +77,13 @@ TERM xterm-debian
 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
 # Background color codes:
 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-NORMAL 00 # global default, although everything should be something.
-FILE 00 # normal file
+#NORMAL 00 # no color code at all
+#FILE 00 # regular file: use no color at all
+RESET 0 # reset to "normal" color
 DIR 01;34 # directory
 LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
  # numerical value, the color is as for the file pointed to.)
+MULTIHARDLINK 00 # regular file with more than one link
 FIFO 40;33 # pipe
 SOCK 01;35 # socket
 DOOR 01;35 # door
@@ -82,6 +92,7 @@ CHR 40;33;01 # character device driver
 ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file
 SETUID 37;41 # file that is setuid (u+s)
 SETGID 30;43 # file that is setgid (g+s)
+CAPABILITY 30;41 # file with capability
 STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
 OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
 STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
@@ -103,23 +114,30 @@ EXEC 01;32
  # archives or compressed (bright red)
 .tar 01;31
 .tgz 01;31
-.svgz 01;31
 .arj 01;31
 .taz 01;31
 .lzh 01;31
 .lzma 01;31
+.tlz 01;31
+.txz 01;31
 .zip 01;31
 .z 01;31
 .Z 01;31
 .dz 01;31
 .gz 01;31
+.lz 01;31
+.xz 01;31
 .bz2 01;31
 .bz 01;31
+.tbz 01;31
 .tbz2 01;31
 .tz 01;31
 .deb 01;31
 .rpm 01;31
 .jar 01;31
+.war 01;31
+.ear 01;31
+.sar 01;31
 .rar 01;31
 .ace 01;31
 .zoo 01;31
@@ -141,6 +159,7 @@ EXEC 01;32
 .tiff 01;35
 .png 01;35
 .svg 01;35
+.svgz 01;35
 .mng 01;35
 .pcx 01;35
 .mov 01;35
@@ -148,6 +167,7 @@ EXEC 01;32
 .mpeg 01;35
 .m2v 01;35
 .mkv 01;35
+.webm 01;35
 .ogm 01;35
 .mp4 01;35
 .m4v 01;35
@@ -162,11 +182,19 @@ EXEC 01;32
 .flc 01;35
 .avi 01;35
 .fli 01;35
+.flv 01;35
 .gl 01;35
 .dl 01;35
 .xcf 01;35
 .xwd 01;35
 .yuv 01;35
+.cgm 01;35
+.emf 01;35
+# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
+.axv 01;35
+.anx 01;35
+.ogv 01;35
+.ogx 01;35
 # audio formats
 .aac 00;36
 .au 00;36
@@ -179,98 +207,10 @@ EXEC 01;32
 .ogg 00;36
 .ra 00;36
 .wav 00;36
-### END dircolors --print-database output ####################################
-
-# now override stuff for those who don't take as much LSD:
-
-# Attribute codes:
-# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
-# Text color codes:
-# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
-# Background color codes:
-# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-DIR 01;30
-LINK target
-EXEC 00;34
-
-# archives or compressed
-.tar 00;31
-.tgz 00;31
-.svgz 00;31
-.arj 00;31
-.taz 00;31
-.lzh 00;31
-.lzma 00;31
-.zip 00;31
-.z 00;31
-.Z 00;31
-.dz 00;31
-.gz 00;31
-.bz2 00;31
-.bz 00;31
-.tbz2 00;31
-.tz 00;31
-.deb 00;31
-.rpm 00;31
-.jar 00;31
-.rar 00;31
-.ace 00;31
-.zoo 00;31
-.cpio 00;31
-.7z 00;31
-.rz 00;31
-# image formats
-.jpg 00
-.jpeg 00
-.gif 00
-.bmp 00
-.pbm 00
-.pgm 00
-.ppm 00
-.tga 00
-.xbm 00
-.xpm 00
-.tif 00
-.tiff 00
-.png 00
-.svg 00
-.mng 00
-.pcx 00
-.mov 00
-.mpg 00
-.mpeg 00
-.m2v 00
-.mkv 00
-.ogm 00
-.mp4 00
-.m4v 00
-.mp4v 00
-.vob 00
-.qt 00
-.nuv 00
-.wmv 00
-.asf 00
-.rm 00
-.rmvb 00
-.flc 00
-.avi 00
-.fli 00
-.gl 00
-.dl 00
-.xcf 00
-.xwd 00
-.yuv 00
-# audio formats
-.aac 00
-.au 00
-.flac 00
-.mid 00
-.midi 00
-.mka 00
-.mp3 00
-.mpc 00
-.ogg 00
-.ra 00
-.wav 00
+# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
+.axa 00;36
+.oga 00;36
+.spx 00;36
+.xspf 00;36
 
 # vim:ft=dircolors
index ad4c54ae52365a951d9d89dd1ac40d52e2012bc9..21b75a1269139517a5e167182f906dae305bf70a 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # logging
 #
 # Logging abilities for the shell initialisation scripts
index 2138ef05f7835398ad644309fa35cb609a6927c4..10e652a90b0675f4cd8d63b121ed5e978fe90687 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # rcsstub
 #
 # Stub for all .z* files; actual content comes from a directory
index 40f1aa0b0acc1f402aef610810e901a355f79d5a..c7eb5cd1be8a611ab98aaaf948147e7f50425c38 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # sourcedir
 #
 # Defines helper function to source files in a directory
index ce6f9fca2f0f464c1a854242a4fdf918023c2637..7021b3f716cd606c7126b7a568e88cd4fa687a5c 100644 (file)
--- a/.zsh/util
+++ b/.zsh/util
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # util
 #
 # Miscellaneous utility functions
index f290a1ff94d88a1a85cc0756167f429ac465b058..a72810281c16d9cccb0a9c478c8e1f835cbb289e 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/10_shlvl
 #
 # reset SHLVL for login shells
index 306ac2745ae55ddf5889880df0264f597015db2c..8e4a8e381ce2a0f09e32b114fbfc3d5ebf467ebc 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/60_mime
 #
 # set up the shell's mime support
index 666dfd4fe7d2c786b356c9dd088482f989559022..af9ab61fd0aa9f33dbd141b9097cc8cf05c2c712 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogout/90_sudo
 #
 # Invalidates any existing sudo sessions
index 8a11e82e96f61985ce074bc97ba3d0870a888235..5b5f7feb4f5a86731179decef646c354e1cab1e9 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogout/99_cls
 #
 # clear the screen
index 131311c4804c6895fc6c3f917ab502ac08454862..985d0069a9b5d973bfee28bd227d36fa7b766069 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_ulimit
 #
 # sets process limits
@@ -8,7 +9,4 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-# disable core files
-ulimit -c 0
-
 # vim:ft=zsh
index 818351ed7a5786418975708551bb3ed8532061c7..1813628719da615077de0fd16972e6548afa2055 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/10_locale
 #
 # Defines locale settings
@@ -35,58 +36,20 @@ if [ -x =locale ]; then
   # I prefer British English and UTF-8 over US English and non-UTF-8
   # And if available, I'll take New Zealand-ey (yes, I love you, GIRLFRIEND)
   case "$_LOCALE" in
-    *en_NZ.utf8*)
-      _set_locale en_NZ.UTF-8
-      export LANG=en_NZ
-      ;;
-    *en_GB.utf8*)
-      _set_locale en_GB.UTF-8
-      export LANG=en_GB
-      ;;
     *en_US.utf8*)
       _set_locale en_US.UTF-8
       export LANG=en_US
       ;;
-    *en_NZ.iso885915*)
-      _set_locale en_NZ.ISO-8859-15
-      warn "no utf-8 locale available"
-      export LANG=en_NZ
-      ;;
-    *en_GB.iso885915*)
-      _set_locale en_GB.ISO-8859-15
-      warn "no utf-8 locale available"
-      export LANG=en_GB
-      ;;
     *en_US.iso885915*)
       warn "no utf-8 locale available"
       _set_locale en_US.ISO-8859-15
       export LANG=en_US
       ;;
-    *en_NZ.iso88591*)
-      warn "no utf-8 locale available"
-      _set_locale en_NZ.ISO-8859-1
-      export LANG=en_NZ
-      ;;
-    *en_GB.iso88591*)
-      warn "no utf-8 locale available"
-      _set_locale en_GB.ISO-8859-1
-      export LANG=en_GB
-      ;;
     *en_US.iso88591*)
       warn "no utf-8 locale available"
       _set_locale en_US.ISO-8859-1
       export LANG=en_US
       ;;
-    *en_NZ*)
-      warn "no utf-8 or iso locale available"
-      _set_locale en_NZ
-      export LANG=en_NZ
-      ;;
-    *en_GB*)
-      warn "no utf-8 or iso locale available"
-      _set_locale en_GB
-      export LANG=en_GB
-      ;;
     *en_US*)
       warn "no utf-8 or iso locale available"
       _set_locale en_US
@@ -94,27 +57,6 @@ if [ -x =locale ]; then
       ;;
   esac
 
-  # regional stuff should be German
-  case "$_LOCALE" in
-    *de_DE.utf8*)
-      _set_regional_locale de_DE.UTF-8
-      ;;
-    *de_DE.iso885915*)
-      _set_regional_locale de_DE.ISO-8859-15
-      ;;
-    *de_DE.iso88591*)
-      _set_regional_locale de_DE.ISO-8859-1
-      ;;
-    *de_CH.utf8*)
-      _set_regional_locale de_CH.UTF-8
-      ;;
-    *de_CH.iso885915*)
-      _set_regional_locale de_CH.ISO-8859-15
-      ;;
-    *de_CH.iso88591*)
-      _set_regional_locale de_CH.ISO-8859-1
-      ;;
-  esac
   unset _LOCALE
 fi
 
index eb6abb5884d5a0ae6fdcdeec9067e7de674b1a7f..fab7d7b48f90dc1214c3e2c626be8ba4b9377d4d 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zlogin/40_zcompile
 #
 # compile zsh snippets
index 2822fe72b5c7a65b42c702b11aae968e266adf45..035ac573e917131e0c957b555b2ed9d49e8bea99 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/00_rdirs
 #
 # Assigns paths to related directories to a number of variables 
@@ -8,14 +9,14 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-export VARDIR_REL=.var
+export VARDIR_REL=var
 export VARDIR=$HOME/$VARDIR_REL
 export ZVARDIR=$VARDIR/zsh
 
-export BINDIR_REL=.bin
+export BINDIR_REL=bin
 export BINDIR=$HOME/$BINDIR_REL
 
-export TMPDIR_REL=.tmp
+export TMPDIR_REL=tmp
 export TMPDIR=$HOME/$TMPDIR_REL
 mkdir --mode=0700 --parent "$(readlink -f $TMPDIR)"
 
index 8e3a5a4595f05ed8ee5ee983ac104b01ff2edac3..20b12377ecc966e4fd62e2fc6d327c56ead63cb9 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/00_fpath
 #
 # Adds local functions directory to $fpath
index e4e81fa40aab1aef75b65071d0f181003182ff59..0a68895bda1765ec4a71d3a30b9b5874b50f337b 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zprofile/00_path
 #
 # Adds custom directories to the $PATH
index 9bc081f7525856019fdaca188ee12d17f36909d9..aec7daa5035900af2297f350856e77cd71165eb6 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/10_zvars
 #
 # set a number of core zsh variables
diff --git a/.zsh/zshenv/30_codeinput b/.zsh/zshenv/30_codeinput
new file mode 100644 (file)
index 0000000..524c60e
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
+# fix the code input
+export GTK_IM_MODULE=xim
+export QT_IM_MODULE=xim
index cdbcc2f52991a98727c5bf6086ad000630fffffb..6636c34e71cc58231fc213038ad999b7ab08db35 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/40_editor
 #
 # set the editor variables
@@ -8,7 +9,7 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-export EDITOR==vim
+export EDITOR=sane_editor
 export VISUAL=$EDITOR
 
 # vim:ft=zsh
diff --git a/.zsh/zshenv/45_postgresql b/.zsh/zshenv/45_postgresql
new file mode 100644 (file)
index 0000000..ef8e4e5
--- /dev/null
@@ -0,0 +1,6 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
+
+if [ -e ~/.hide/pg_service.conf ]; then
+    export PGSYSCONFDIR="$(eval 'echo' '~/.hide')";
+fi;
index ebfc9ce21ef20f6433bd8dd63099f1e10edcd7f9..2be03a0a807c963867de9fb7f606b5259a3d1bcf 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_debian
 #
 # set a number of default variables related to Debian
@@ -8,9 +9,9 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-export DEBFULLNAME='martin f. krafft'
-export DEBEMAIL=madduck@debian.org
-export DEBKEYID=55c9882d999bbcc4
+export DEBFULLNAME='Don Armstrong'
+export DEBEMAIL=don@debian.org
+export DEBKEYID=2AD865BA26040F67F9CC3660A2D13001D98C0FBA
 
 if [[ -z "$debian_chroot" && -r /etc/debian_chroot ]]; then
   export debian_chroot="$(</etc/debian_chroot)"
index 5f3fbe4e2f1aad60b3f50b21e3d6ea1bbe9db41c..276c31ac49cf46528765b4b8024f3a6d2a7a0b29 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_pagers
 #
 # set a number of default variables related to pagers
@@ -9,7 +10,7 @@
 #
 
 eval `lesspipe 2>/dev/null`
-LESS='--no-init --hilite-search --SILENT'
+LESS='--no-init -R --hilite-search --SILENT'
 export LESS
 
 export LESSHISTFILE=~/.var/less/history
index 96aba9206c137db7487584c7a1ffac7a78b8b0ae..f63ba8889bd6f489dc849302cba7f1051d1718d8 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshenv/80_texmf
 #
 # set a number of default variables related to texmf
@@ -8,7 +9,7 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
-export TEXMFHOME=$HOME/.texmf
+export TEXMFHOME=$HOME/lib/texmf
 export TEXMFCONFIG=$TEXMFHOME
 export TEXMFVAR=$VARDIR/texmf
 
index 92b7c07e80fc0aeed82dcba589ea573aaeb789c9..28a1e64c97a366141dd618b9833d726ad7033df1 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_autoload
 #
 # Autoload available functions
index 24e51b68dda32a0427e4821463e4e26ecd1a96e3..fedc0edb6bf30af078535bb60091e18de19c43ff 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_zrecompile
 #
 # recompile zsh snippets, if necessary
index 09aa36786db8631bc088b99fe3debdd5033c1ad2..484a08565dcf1cf0bb8bf2cf4135a2cd76c364d0 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/00_varsetup
 #
 # set up global variables used by the shell
index 057ffa619778f0b59b676a61b0506fc374a4158b..024d3fa2eaec1ccfc172eebfcd959e8e5796525f 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/19_dircolors
 #
 # Load dircolors database
index 902966a1c4708b7484dde6fd790c4e274fae28f2..18265110b7ea14585b9701b52fb34f4e7a5b300f 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/20_compsys
 #
 # Configures the completions system
@@ -92,6 +94,7 @@ zstyle ':completion:*:processes' command 'ps -au$USER -o pid,time,cmd|grep -v "p
 compdef _precommand gdb
 compdef _precommand nohup
 compdef _precommand strace
+compdef _precommand faf
 
 zstyle ':completion:*' verbose yes
 zstyle ':completion:*:descriptions' format '%B%d%b'
index ea1da701e0297861652748cd5f4743330501b22e..c07eff55c71738e0487bef4e8989e2b856a6a2b5 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/20_dirhashes
 #
 # populate some hashes for commonly used directories
index 7d48c0a6aa50d0537705c71cd5754886ab146ee7..522fd4ad021e2f60a894d6c4089f309cc394b4ff 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/30_aliases
 #
 # Defines command shortcuts
@@ -46,7 +47,7 @@ alias lart='ls -lart'
 alias lsd='ll -d *(-/DN)'
 
 alias lscontext=ls
-cd () { __CHPWD_RUN_FIRST=lscontext && builtin cd "$@" && unset __CHPWD_RUN_FIRST }
+#cd () { __CHPWD_RUN_FIRST=lscontext && builtin cd "$@" && unset __CHPWD_RUN_FIRST }
 #_cd_l() { ll }
 #chpwd_functions+=_cd_l
 
@@ -176,7 +177,7 @@ unset _LANGUAGES
 
 alias dpkg-buildpackage="dpkg-buildpackage -k$DEBKEYID -rfakeroot"
 
-bugsub() { echo X-debbugs-autosubscribe: madduck | sendmail -f $DEBEMAIL ${1:?No bug number}-subscribe@bugs.debian.org }
+bugsub() { echo X-debbugs-autosubscribe: don | sendmail -f $DEBEMAIL ${1:?No bug number}-subscribe@bugs.debian.org }
 bugunsub() { sendmail -f $DEBEMAIL ${1:?No bug number}-unsubscribe@bugs.debian.org </dev/null }
 ptssub() { echo subscribe ${1:?E: no package name given.} | sendmail -f ${2:-$DEBEMAIL} pts@qa.debian.org }
 ptsunsub() { echo unsubscribe ${1:?E: no package name given.} | sendmail -f ${2:-$DEBEMAIL} pts@qa.debian.org }
@@ -198,14 +199,6 @@ compdef asc=ssh
 
 alias mdtest='swaks -s localhost -t'
 
-if whence devtodo >/dev/null; then
-  _devtodo_on_chpwd() {
-    local out; out="$(devtodo)"
-    [[ -n $out ]] && print "todo:\n$out"
-  }
-  [[ -z ${(M)chpwd_functions:#_devtodo_on_chpwd} ]] && chpwd_functions+=_devtodo_on_chpwd
-fi
-
 pdfextract() {
   local i=$1
   local o=$2
index c106d417309e98377b46a21c09c737d772dd7c6d..7ff5c2426e75a1293ff63cfebbe278f9250a40f8 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # fix until #480889 is fixed
 
 # remove the compiled file before it gets sourced
index d3391f6498fe29cd10c236e81e23e811b191b067..173dffb3da6d78f4eeda71a2408f0588b3099868 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/40_tempfuncs
 #
 # Helper functions to create temporary files and directories
index b7cc3b98b9beb33bc87316033e81964f94ed6a9a..f7f80ca807acf818da50d8ba91d211417d99f561 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/60_vcsprompt
 #
 # Make git information available to the prompt
diff --git a/.zsh/zshrc/64_ssh b/.zsh/zshrc/64_ssh
new file mode 100644 (file)
index 0000000..449d11b
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
+
+# set up ssh-agent
+if which ssh-agent >/dev/null && [ -d ~/.ssh ] &&  \
+    [ -z "$SSH_CONNECTION" ] &&  [ -z "$SSH_CLIENT" ]; then 
+    if [ -e ~/.ssh/ssh_agent_info ] && \
+       [ -n "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" ] && \
+       kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" >/dev/null 2>&1; then
+       . ~/.ssh/ssh_agent_info > /dev/null
+    elif [ -e ~/.ssh/ssh_agent_info_$(hostname) ] && \
+       kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info_$(hostname))" >/dev/null 2>&1; then
+       . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
+    else
+       ssh-agent -s > ~/.ssh/ssh_agent_info_$(hostname)
+       . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
+    fi;
+fi;
+    
index 5592fc1d910d1396337ea230ec36bcc6c73f2273..1aba444b437d17f54f032491077190f7324ccf39 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/75_vcsinfo
 #
 # Set up vcs_info subsystem
 # see zsh-betacontrib(1)
 
 autoload -Uz vcs_info
+zstyle ':vcs_info:*' get-revision true
+zstyle ':vcs_info:*' check-for-changes true
+zstyle ':vcs_info:*' formats '%u%c|%s:%b'
+zstyle ':vcs_info:*' actionformats '%c%u|%s@%a:%b'
+zstyle ':vcs_info:*' branchformat '%b@%r'
+zstyle ':vcs_info:*' unstagedstr "%{$fg_no_bold[red]%}"
+zstyle ':vcs_info:*' stagedstr "%{$fg_no_bold[yellow]%}"
+zstyle ':vcs_info:*' enable hg git bzr svn cvs
 
-zstyle ':vcs_info:*' actionformats \
-    '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
-zstyle ':vcs_info:*' formats       \
-    '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
-zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
+# vcs-specific formatting...
+zstyle ':vcs_info:hg*:*' hgrevformat "%r"
+#zstyle ':vcs_info:fossil:*' fsrevformat '%.5h'
+# Silly git doesn't honor branchformat
+zstyle ':vcs_info:git*:*' formats '%c%u|%s@%a:%b@%.5i[%.5r]'
+zstyle ':vcs_info:git*:*' actionformats '%c%u|%s@%a:%b@%.5i'
 
-#PS1=’%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_}’"%f%# ’
-
-zstyle ':vcs_info:*' disable cdv darcs mtn svk p4 tla
+# now use the blasted colors!
+setopt PROMPT_SUBST
+RPROMPT='%{$fg_no_bold[green]%}${vcs_info_msg_0_}%{$reset_color%}'
 
 #this enables vcs_info
-#precmd_functions+=vcs_info
+precmd_functions+=vcs_info
index 02844002d3654db33c8b10407e95512785de3ed8..e3d3b3a7316ccc29ac9a764b39456b964b381d55 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_bindkeys
 #
 # Defines key bindings
@@ -20,6 +21,22 @@ bindkey '\e=' copy-prev-shell-word
 # allow for better ad-hoc multiline editing
 bindkey '\eq' push-line-or-edit
 
+# fixup ctrl-arrow stuff since it's all mucked up since zsh doesn't use readline
+bindkey "\e[1~" beginning-of-line
+bindkey "\e[4~" end-of-line
+bindkey "\e[5~" history-beginning-search-backward
+bindkey "\e[6~" history-beginning-search-forward
+bindkey "\e[3~" delete-char
+bindkey "\e[2~" quoted-insert
+bindkey "\e[5C" forward-word
+bindkey "\e[5D" backward-word
+bindkey "\e[1;5C" forward-word
+bindkey "\e[1;5D" backward-word
+
+# for rxvt
+bindkey "\e[8~" end-of-line
+bindkey "\eOc" forward-word
+bindkey "\eOd" backward-word
 # fix home/end keys (for mosh)
 bindkey "\e[7~" beginning-of-line
 bindkey "\e[8~" end-of-line
index cae9274555ad28e864b69b896143b7babc5cace3..e4c00c0847087ec67d4fef16304169472caea6cc 100644 (file)
@@ -1,9 +1,11 @@
+# -*- mode: sh -*-
 typeset -Ag abbreviations
 abbreviations=(
   '...'  '../..'
   '....' '../../..'
   'BG'   '& exit'
-  'WC'   '| wc'
+# WC is the alias for working tree for the --git-export option
+#  'WC'   '| wc'
   'GR'   '|& grep '
   'HD'   '| head'
   'HL'   ' --help |& less -r'
index 563ad908eb5b9c09d3fb113d4bd338c9972a9500..d5d71d2ed97401ff4cbaf0d962b4e6abf5095fcf 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_history
 #
 # Set up command line history functions
index 91acd91ecc70da5e0e67950b939819d04c6add2a..103ce1acb066d4850d8f2cf03e306849cce4c22f 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # from grml
 _inplaceMkDirs() {
     local PATHTOMKDIR
index a7378006980c8c241a5a5e47f41eb3004164ea99..d86a2ced3d0358623e909c0d6a0d23bd71b9a927 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_zle
 #
 # Configure the zsh line editor
index ccb88e1b2590cead27e77e2034544d641715b018..82ae89074d82e5a9a2aefadc4537a376cde2a012 100644 (file)
@@ -1,3 +1,5 @@
+# -*- mode: sh -*-
+# -*- mode: sh -*-
 # zshrc/80_prompt
 #
 # Formats the shell prompt
@@ -8,6 +10,8 @@
 # Source repository: git://git.madduck.net/etc/zsh.git
 #
 
+PS1="%{$fg[green]%}%n@%m %{$fg[green]%}%* %{$fg[yellow]%}%25<…<%~%<<%{$reset_color%}%# "
+
 if [ "${PS1:-}" = '%m%# ' ]; then
   local _MIDDLE="%1v%(2v.|%B%2v%b|.)%(3v.%3v.)"
   if is_root; then
index e8a19015551ee0a798f52c7e0c459fe88b681197..7d3285b1fe15c70d89eb731ffa8d272c9e309b6e 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_termfonts
 #
 # provide helper methods to increase/decrease fonts from the command line
index 8059ca88c2041044dddaca526af19722ae4edd81..da7a9a47e9160bfe6f62fbb78e02e12685ccae04 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/80_xtermtitle
 #
 # Fancy setting of the xterm title
 
 __set_xterm_title() {
   case $TERM in
-    screen)
+    screen*)
       print -nR $'\033k'$1$'\033'\\ 
       print -nR $'\033]0;'$2$'\a'
       ;;
-    xterm|rxvt*)
+    xterm*|rxvt*)
       print -nR $'\033]0;'$*$'\a'
       ;;
   esac
diff --git a/.zsh/zshrc/90_cleanfiles b/.zsh/zshrc/90_cleanfiles
deleted file mode 100644 (file)
index b4bd2c2..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# zlogout/90_cleanfiles
-#
-# remove files we never want to keep around
-#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: git://git.madduck.net/etc/zsh.git
-#
-
-typeset -la rmfiles
-
-rmfiles+=~/plugin131.trace
-rmfiles+=~/minicom.log
-rmfiles+=~/.cshrc
-rmfiles+=~/java.log.*(N)
-rmfiles+=~/unison.log
-rmfiles+=~/.bzr.log
-rmfiles+=~/.fonts.cache-1
-rmfiles+=~/.gksu.lock
-rmfiles+=~/.*.sw[mnop](N)
-rmfiles+=~/.viminfo
-rmfiles+=~/.bash_history
-rmfiles+=~/core
-rmfiles+=~/nohup.out
-rmfiles+=~/typescript
-rmfiles+=~/jpilot.log
-rmfiles+=~/srtp.log
-rmfiles+=~/hs_err_pid[0-9]*.log
-
-typeset -la _rmfiles
-
-for f in ${~rmfiles}; do
-  [[ -f $f ]] || continue
-  _rmfiles+="$f"
-done
-
-
-if (( $#_rmfiles )); then
-  _rmfiles=(${_rmfiles#$HOME/})
-  info "Removing files: ${_rmfiles[@]}..."
-  rm -f ${_rmfiles[@]}
-fi
-
-unset _rmfiles
-
-# vim:ft=zsh
index fe4102df93be79e83f4345e7076cc93859850224..0d55df2fc4c88211414c7f1b0f02d8ed06c60771 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/95_fortune
 #
 # Prints a fortune cookie to each interactive shell
index b9b895f2530bc09519f28714a9fe8e4c8e20ac04..e1a5a84e3d3dd8ca65ee856f4f6487df33f0e33d 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/95_watch
 #
 # watch activity of other users
index b0084cefba78fe12d0104df371d54e4fd2e4322e..fafacd18709bb3ed96c9688b5f489789b18e0d60 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/99_TODO
 #
 # All kinds of stuff not yet split to other files
@@ -52,8 +53,6 @@ setopt no_beep
 # use 0xXX and 0XX output instead of 16#XX/8#XX
 setopt c_bases
 
-[ "$(umask)" = 022 ] && umask 0077
-
 # remove '/' from WORDCHARS
 WORDCHARS="${WORDCHARS//\/}"
 
index a8b63888ef9679a937a66dce537ac08d7c0a1681..a355e4ff66d62be1b24776e59011a26ee779b024 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: sh -*-
 # zshrc/99_hookfunctions
 #
 # define hook functions in case the *_functions arrays are not honoured