From d887c0dd92f6877215acc3d530da800d3538f277 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 12 May 2008 15:27:08 +0100 Subject: [PATCH] automatic ls on chdir() --- .zsh/zshrc/30_aliases | 4 ++++ .zsh/zshrc/39_tempfuncs | 2 +- .zsh/zshrc/90_cleanfiles | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.39.5