Skip to content
Discussion options

You must be logged in to vote

Update zoxide to v0.10.0 and regenerate your init file:

zoxide init nushell | save -f ~/.zoxide.nu

The old init script stored __zoxide_hooked as $env.__zoxide_hooked = true. Tmux serializes all env vars as strings when it spawns a pane, so nushell sees "true" instead of true and throws cant_convert. The v0.10.0 template doesn't use that env var anymore. It checks the hooks config with a local variable instead, so tmux can't break it.

You'll need nushell v0.106.0+ for the new init script.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ajeetdsouza
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