I've used the fish_config utility to customize my syntax color scheme and now I want to copy these settings to remote servers I can't run fish_config on. Where does it save the changes made through that utility?

  • 2
    I believe as universal variables. Do set -U to see them – glenn jackman Aug 23 '17 at 19:03
up vote 5 down vote accepted

Some settings, such as the color theme, are stored as universal variables. Run set -U to see them. Note that at the moment universal variables are stored in a file whose name is unique to each host. In the upcoming fish 3.0.0 release we're going to make that file truly global so that simply copying your ~/.config/fish directory tree to another machine will install items like your color theme. See https://github.com/fish-shell/fish-shell/issues/1912. At the moment you need to use set -U | grep fish_color_ on the machine having the theme you like and do set -U of each var on the target machine. A bit of a pain in the ass we admit.

The prompt is saved as an autoloaded function in ~/.config/fish/functions/fish_prompt.fish.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.