Key binding for cd
dylanirlbeck opened this issue · 2 comments
dylanirlbeck commented
Hi. I really like your idea for remapping cd
to cd
and then ls
, but I'm curious how I can add this functionality directly to my .zshrc
. I see in your zshrc.sh
script you do
# Custom cd
chpwd() ls
but I'm not sure how to just put the remapped cd
into my .zshrc
like alias -g cd="<STUFF>"
.
Could anyone help me figure this out? Thanks in advance!
Parth commented
I believe that is all you need to do, is that not working for you?
This is how I used to do it and it caused some weird side effects.
dylanirlbeck commented
That was it, sorry for the confusion. I must have had another error in my .zshrc
at the time that wasn't letting the file work. Thanks @Parth!