Skip to content

zsh eval not work in zshrc with zoxide #93

Answered by marlonrichert
tshu-w asked this question in Q&A
Discussion options

You must be logged in to vote

znap eval zoxide "$(zoxide init --cmd j zsh)"

Zsh evaluates expressions in "double quotes" immediately upon declaration. You should use 'single quotes' instead.

Additionally, when using znap eval, you should leave out the $().

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@marlonrichert
Comment options

@tshu-w
Comment options

tshu-w Aug 2, 2021
Author Sponsor

@marlonrichert
Comment options

@tshu-w
Comment options

tshu-w Aug 2, 2021
Author Sponsor

@marlonrichert
Comment options

Answer selected by tshu-w
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