Skip to content

Detailed comparison of different hook options #142

Answered by ajeetdsouza
weilbith asked this question in Q&A
Discussion options

You must be logged in to vote

@weilbith the default hook is pwd and usually works great for most people. Your intuition is correct - pwd increases the score of a directory whenever you cd into it, and prompt increases the score with every command. pwd is more efficient, since it is called less often, but I wouldn't worry about that - zoxide is quite fast, and doesn't cause any slowdown there.

I personally prefer the pwd hook, because it intuitively makes more sense to me. If I have a directory that I cd into once every morning and use for the rest of the day without ever closing the terminal, that's not a very important directory compared to one I have to cd into and out of 100 times a day (even if it's just a tempora…

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ajeetdsouza
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #120 on January 29, 2021 20:04.