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.
Answered by
ajeetdsouza
Mar 2, 2024
Replies: 2 comments
-
Works great for me with
|
Beta Was this translation helpful? Give feedback.
0 replies
-
zoxide's function __zoxide_cd() {
cd "$1" && ls
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ajeetdsouza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zoxide's
cd
function can be redefined: