Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key binding for cd #58

Closed
dylanirlbeck opened this issue Jan 29, 2020 · 2 comments
Closed

Key binding for cd #58

dylanirlbeck opened this issue Jan 29, 2020 · 2 comments

Comments

@dylanirlbeck
Copy link

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
Copy link
Owner

Parth commented Jan 30, 2020

I believe that is all you need to do, is that not working for you?

ab1e2b1

This is how I used to do it and it caused some weird side effects.

@dylanirlbeck
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants