]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

automatic ls on chdir()
authormartin f. krafft <madduck@madduck.net>
Mon, 12 May 2008 14:27:08 +0000 (15:27 +0100)
committermartin f. krafft <madduck@madduck.net>
Mon, 12 May 2008 14:27:08 +0000 (15:27 +0100)
.zsh/zshrc/30_aliases
.zsh/zshrc/39_tempfuncs
.zsh/zshrc/90_cleanfiles

index 743a55fc26b536928669ca23ab12585fc0faa422..42c5624dd7907ff69d46acc0048263abfc68e21c 100644 (file)
@@ -42,6 +42,10 @@ alias lssmall="ls -Srl *(.oL[1,10])"
 alias lsnew="ls -rl *(D.om[1,10])"
 alias lsold="ls -rtlh *(D.om[1,10])"
 
+cd () { builtin cd $* && ll }
+#_cd_l() { ll }
+#chpwd_functions+=_cd_l
+
 alias egrep='egrep --color=auto -d skip'
 alias fgrep='fgrep --color=auto -d skip'
 alias grep='grep --color=auto -d skip'
index dd4eb07add7bf0af75a607f61901360bedd0e2a8..679f14bd31d12b24c217f620c054e86dee438b1a 100644 (file)
@@ -9,7 +9,7 @@
 #
 
 cdt () {
-  cd $(mktemp -td cdt.XXXXXXXX)
+  builtin cd $(mktemp -td cdt.XXXXXXXX)
   pwd
 }
 
index 75a5a496221d4de8aca4510b39a8ce55e60bd859..c5650cf753f8714f5f76b23f82f7fa5a48cc6d37 100644 (file)
@@ -11,7 +11,7 @@
 typeset -la rmfiles
 
 _OLDPWD="$PWD"
-cd ~
+builtin cd ~
 
 rmfiles+=plugin131.trace
 rmfiles+=minicom.log
@@ -43,7 +43,7 @@ fi
 
 unset _rmfiles
 
-cd $_OLDPWD
+builtin cd $_OLDPWD
 unset _OLDPWD
 
 # vim:ft=zsh