matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
964 stars 79 forks source link

"set SPACEFISH_PROMPT_ORDER" fails to apply #57

Closed roginfarrer closed 6 years ago

roginfarrer commented 6 years ago

Bug Report

Current Behavior Setting SPACESHIP_PROMPT_ORDER or SPACEFISH_PACKAGE_SHOW fails to have an affect when saved to init.fish. It also does not apply when placed inside config.fish.

set SPACEFISH_PROMPT_ORDER user dir git exec_time line_sep battery jobs char
set SPACEFISH_PACKAGE_SHOW false

Expected Behavior Setting the above would change my prompt.

Environment

matchai commented 6 years ago

On my local configuration, I've had no problem changing these config values. https://asciinema.org/a/SXWCSN8IADx5HRZkKKFjvM9is

What about if you set these values outside of a configuration file? Does the prompt display differently if you run these set commands directly?

roginfarrer commented 6 years ago

Ah, the -g was the issue.

Regarding the other command, removing jobs also seems to fix it as well. I had brought that over from Spaceship.

For posterity, this was resolved with the following:

set -g SPACEFISH_PROMPT_ORDER user dir git exec_time line_sep battery char
set -g SPACEFISH_PACKAGE_SHOW false