From 31dd1414e8c5506b61f5c5445ddf5af40f3d21a3 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 2 Jun 2008 08:00:01 +0200 Subject: [PATCH] ls -rt on chdir() --- .zsh/zshrc/30_aliases | 4 +++- .zsh/zshrc/31_cd_bugfix2 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 } -- 2.39.2