How to z && ls #711
-
Hi everyone, Everything works well, but I would like to ask you a question. I was used to redefining cd with cd() {builtin cd "$@" && ls; } in order to view all the files in the folder automatically every time I do cd. Does someone have some suggestions on how to do it correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Works great for me with
|
Beta Was this translation helpful? Give feedback.
-
zoxide's function __zoxide_cd() {
cd "$1" && ls
} |
Beta Was this translation helpful? Give feedback.
zoxide's
cd
function can be redefined: