From: martin f. krafft Date: Mon, 12 May 2008 14:27:08 +0000 (+0100) Subject: automatic ls on chdir() X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/d887c0dd92f6877215acc3d530da800d3538f277 automatic ls on chdir() --- diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 743a55f..42c5624 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -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' diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs index dd4eb07..679f14b 100644 --- a/.zsh/zshrc/39_tempfuncs +++ b/.zsh/zshrc/39_tempfuncs @@ -9,7 +9,7 @@ # cdt () { - cd $(mktemp -td cdt.XXXXXXXX) + builtin cd $(mktemp -td cdt.XXXXXXXX) pwd } diff --git a/.zsh/zshrc/90_cleanfiles b/.zsh/zshrc/90_cleanfiles index 75a5a49..c5650cf 100644 --- a/.zsh/zshrc/90_cleanfiles +++ b/.zsh/zshrc/90_cleanfiles @@ -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