From: martin f. krafft Date: Mon, 2 Jun 2008 06:00:01 +0000 (+0200) Subject: ls -rt on chdir() X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/31dd1414e8c5506b61f5c5445ddf5af40f3d21a3?ds=inline;pf=etc ls -rt on chdir() --- diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index e5e6e8a..0462be3 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -36,6 +36,8 @@ alias ll='ls -l' alias l=ll alias la='ls -a' alias lla='ls -la' +alias lrt='ls -lrt' +alias lart='ls -lart' # List only directories and symbolic links that point to directories alias lsd='ls -ld *(-/DN)' @@ -44,7 +46,7 @@ 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 () { builtin cd "$@" && lrt } #_cd_l() { ll } #chpwd_functions+=_cd_l diff --git a/.zsh/zshrc/31_cd_bugfix2 b/.zsh/zshrc/31_cd_bugfix2 index f551907..b1aae20 100644 --- a/.zsh/zshrc/31_cd_bugfix2 +++ b/.zsh/zshrc/31_cd_bugfix2 @@ -1,3 +1,3 @@ # fix until #480889 is fixed -cd () { builtin cd $* && ll } +cd () { builtin cd "$@" && lrt }