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

_ZO_FZF_OPTS reset to default if changed in fish shell #347

Closed
jayrc2026 opened this issue Feb 2, 2022 · 13 comments
Closed

_ZO_FZF_OPTS reset to default if changed in fish shell #347

jayrc2026 opened this issue Feb 2, 2022 · 13 comments

Comments

@jayrc2026
Copy link

I changed the setting of _ZO_FZF_OPTS in my config.fish to _ZO_FZF_OPTS "--preview 'lsd {}' and now my zi command show a full screen fzf and says lsd: no such file or dir (os error 2) please let me know to reset _ZO_FZF_OPTS to default

@ajeetdsouza
Copy link
Owner

You can just remove the _ZO_FZF_OPTS variable. Is lsd not in your $PATH? What does which lsd return?

@jayrc2026
Copy link
Author

jayrc2026 commented Feb 2, 2022

which lsd returns /usr/bin/lsd
and I did remove _ZO_FZF_OPTS but it won't return back to normal, It just shows full screen fzf without preview

@jayrc2026
Copy link
Author

I tried uninstalling zoxide but that did not reset the any settings what more can I do I really like zoxide but I'm not able to get it back to default

@ajeetdsouza
Copy link
Owner

What is the output of env | grep _ZO_?

@jayrc2026
Copy link
Author

env | grep ZO output is blank just a new line and my prompt again

@jayrc2026
Copy link
Author

Even when I echo $_ZO_FZF_OPTS I get a blank line

@ajeetdsouza
Copy link
Owner

Are you on the latest version of zoxide?

zoxide --version

@jayrc2026
Copy link
Author

zoxide v0.8.0

@ajeetdsouza
Copy link
Owner

Can you run:

set -e _ZO_FZF_OPTS
zoxide query -i

and take a screenshot?

@jayrc2026
Copy link
Author

zoxide_fixed

@jayrc2026
Copy link
Author

It is back to normal thank you......!!!!!!!!
May I know what was wrong

@ajeetdsouza
Copy link
Owner

_ZO_FZF_OPTS was still set, you can erase environment variables using set -e.

@jayrc2026
Copy link
Author

Thank you now I understand why there was no change even after uninstalling

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