Skip to content

Why am I having trouble setting environment variables? #10058

Closed Answered by faho
Oneechan69 asked this question in Q&A
Discussion options

You must be logged in to vote

https://fishshell.com/docs/current/faq.html#how-do-i-set-or-clear-an-environment-variable

You have not exported the variables, meaning they are not visible outside of fish, to an external process like, say, starship. Add a -x to your set:

set -gx STARSHIP_CONFIG "~/.config/fish/starship.toml"
set -gx RIPGREP_CONFIG_PATH "~/.config/fish/.ripgreprc"

Replies: 1 comment

Comment options

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