From e174170a45aaaa43f803e2baf3edfb9fc853bfcf Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Thu, 8 Aug 2019 20:11:20 +0200 Subject: [PATCH] automatically ls when cd --- dot_zsh_functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_zsh_functions b/dot_zsh_functions index 8369dc2..43d65d5 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -106,3 +106,7 @@ function skip { function biggerthan() { find . -size "+$*" -type f -print0 | xargs -0 ls -Ssh | sort -z } +# To automatically ls when changing directory +function cd() { + builtin cd "$@" && ls -latr +}