-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Share computer-independent configurations #5870
Comments
@lucamoschella: It is, if you're using fish >= 3.0. The reason why colors and such don't show up is because they're saved as universal variables, which are stored in a file inside ~/.config/fish, but before 3.0 it included a host identifier (mac address or hostname). Since 3.0 it's named If you can't upgrade to 3.0 (you really should), you'll have to set your colors in config.fish, e.g. via something like if not set -q luca_settings
# you can get these via `set -U | grep color`
set -U fish_color_autosuggestion '555' 'brblack'
set -U fish_color_cancel -r
set -U fish_color_command 005fd7
set -U fish_color_comment 990000
# and so on
set -U luca_settings # this makes sure we don't reexecute this block
end |
Oh okay, that's great! Just to be sure, in order to move the fish configuration to another computer (that uses fish 3), do I have just to copy the Because in my local fish I'm getting: $ cat fish_variables
# This file is automatically generated by the fish.
# Do NOT edit it directly, your changes will be overwritten.
SET ZO_CMD:zo
SET Z_CMD:z
SET Z_DATA:/home/luca/\x2elocal/share/z/data
SET Z_DATA_DIR:/home/luca/\x2elocal/share/z
SET Z_EXCLUDE:/home/luca
SET __fish_classic_git_prompt_initialized:\x1d
SET __fish_init_2_39_8:\x1d
SET __fish_init_2_3_0:\x1d
SET fish_color_autosuggestion:969896
SET fish_color_cancel:\x2dr
SET fish_color_command:c397d8
SET fish_color_comment:e7c547
SET fish_color_cwd:green
SET fish_color_cwd_root:red
SET fish_color_end:c397d8
SET fish_color_error:d54e53
SET fish_color_escape:bryellow\x1e\x2d\x2dbold
SET fish_color_history_current:\x2d\x2dbold
SET fish_color_host:normal
SET fish_color_match:\x2d\x2dbackground\x3dbrblue
SET fish_color_normal:normal
SET fish_color_operator:bryellow
SET fish_color_param:7aa6da
SET fish_color_quote:b9ca4a
SET fish_color_redirection:70c0b1
SET fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SET fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SET fish_color_status:red
SET fish_color_user:brgreen
SET fish_color_valid_path:\x2d\x2dunderline
SET fish_greeting:\x1d
SET fish_key_bindings:fish_default_key_bindings
SET fish_pager_color_completion:\x1d
SET fish_pager_color_description:B3A06D\x1eyellow
SET fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SET fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan As you can see it's not completely portable since there are absolute paths (I think, added by |
We offer a PPA: https://launchpad.net/~fish-shell/+archive/ubuntu/release-3.
Yes. |
Great, thanks! |
What do you think about adding a guideline for plugin developers stating that the |
Plugin developers have no influence on where that file is kept, and we don't have any guidelines for them. If you have any issue with a plugin about keeping machine-dependent settings in universal variables, take it up with them. |
Can we still share the file My home directory on my local laptop is
If I share it with my server, the path will be wrong because it should point to |
Hello,
I'd like to share my fish configuration (mainly, the colors) across computers.
The problem that I'm facing right now is the following.
I have an instance on EC2 and I'd like to (easily, I usually use yadm to sync dotfiles) configure fish.
I thought that something like
would give to the remote fish the same look and behaviour of the local fish, but it isn't working.
I tried to sync the entire
.config/fish
folder but it isn't working, the colors stay the same.This is quite annoying since with my shell theme the default colors of fish aren't adeguate.
Using fish-config isn't straightforward since I can't open the link direcly in the browser (I should open some ports/do some tunneling).
It would be great to have a file, or a folder, with all the computer-independent configurations that can be synced across computers.
Is it already possible?
The text was updated successfully, but these errors were encountered: