Where Is the Spaceship Prompt Config File?
Spaceship zsh prompt config files with load order and override var.
Last updated
Spaceship reads a zsh snippet as its config. The home rc name takes priority with an XDG alt behind it. An env var redirects to any path.
No filesystem cache exists despite naming rumors. The cache in question clears every prompt from memory. Keep backup to the single rc file.
Where Spaceship stores this, by platform
~/.spaceshiprc.zsh
Auto sourced zsh snippet with home file first and XDG alt behind. Env override to any path. No filesystem cache exists despite the name.
~/.spaceshiprc.zsh
Same rc names and override with POSIX paths.
Frequently asked questions
How do I back up Spaceship?
Copy the rc file with no shell running. Same file works across Linux and macOS. Restoring means putting it back and opening a new shell to confirm sections.
Which file wins?
The home rc loads first with the XDG alt as fallback. An env var points at any path instead. Cache claims refer to an in-memory array, not a directory, so there is nothing to clear.
Notice an outdated path? Let us know.