diff options
| author | kj_sh604 | 2025-12-28 23:41:31 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-12-28 23:42:16 -0500 |
| commit | 155d1165bb560552f672323ce18e4d3d92aa42e7 (patch) | |
| tree | 7e9171839fc882fd29e15a07a92407794c1fe936 | |
| parent | cc352d70fa1018cdcc3dea2982762e0d3d475eb5 (diff) | |
refactor: fish 4.3 changes
fish update message that prompted this change:
fish: upgraded to version 4.3:
* Color variables are no longer set in universal scope by default.
Migrated them to global variables set in ~/.config/fish/conf.d/fish_frozen_theme.fish
To restore syntax highlighting in other fish sessions, please restart them.
* The fish_key_bindings variable is no longer set in universal scope by default.
Migrated it to a global variable set in ~/.config/fish/conf.d/fish_frozen_key_bindings.fish
See also the release notes (type `help relnotes`).
| -rw-r--r-- | .config/fish/conf.d/fish_frozen_key_bindings.fish | 14 | ||||
| -rw-r--r-- | .config/fish/conf.d/fish_frozen_theme.fish | 48 | ||||
| -rw-r--r-- | .config/fish/fish_variables | 41 |
3 files changed, 63 insertions, 40 deletions
diff --git a/.config/fish/conf.d/fish_frozen_key_bindings.fish b/.config/fish/conf.d/fish_frozen_key_bindings.fish new file mode 100644 index 0000000..dfed4d6 --- /dev/null +++ b/.config/fish/conf.d/fish_frozen_key_bindings.fish | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # This file was created by fish when upgrading to version 4.3, to migrate | ||
| 2 | # the 'fish_key_bindings' variable from its old default scope (universal) | ||
| 3 | # to its new default scope (global). We recommend you delete this file | ||
| 4 | # and configure key bindings in ~/.config/fish/config.fish if needed. | ||
| 5 | |||
| 6 | set --global fish_key_bindings fish_vi_key_bindings | ||
| 7 | |||
| 8 | # Prior to version 4.3, fish shipped an event handler that runs | ||
| 9 | # `set --universal fish_key_bindings fish_default_key_bindings` | ||
| 10 | # whenever the fish_key_bindings variable is erased. | ||
| 11 | # This means that as long as any fish < 4.3 is still running on this system, | ||
| 12 | # we cannot complete the migration. | ||
| 13 | # As a workaround, erase the universal variable at every shell startup. | ||
| 14 | set --erase --universal fish_key_bindings | ||
diff --git a/.config/fish/conf.d/fish_frozen_theme.fish b/.config/fish/conf.d/fish_frozen_theme.fish new file mode 100644 index 0000000..442abf8 --- /dev/null +++ b/.config/fish/conf.d/fish_frozen_theme.fish | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | # This file was created by fish when upgrading to version 4.3, to migrate | ||
| 2 | # theme variables from universal to global scope. | ||
| 3 | # Don't edit this file, as it will be written by the web-config tool (`fish_config`). | ||
| 4 | # To customize your theme, delete this file and see | ||
| 5 | # help interactive#syntax-highlighting | ||
| 6 | # or | ||
| 7 | # man fish-interactive | less +/^SYNTAX.HIGHLIGHTING | ||
| 8 | # for appropriate commands to add to ~/.config/fish/config.fish instead. | ||
| 9 | # See also the release notes for fish 4.3.0 (run `help relnotes`). | ||
| 10 | |||
| 11 | set --global fish_color_autosuggestion 767676 | ||
| 12 | set --global fish_color_cancel --reverse | ||
| 13 | set --global fish_color_command 87d787 | ||
| 14 | set --global fish_color_comment 6c6c6c | ||
| 15 | set --global fish_color_cwd green | ||
| 16 | set --global fish_color_cwd_root red | ||
| 17 | set --global fish_color_end ff8787 | ||
| 18 | set --global fish_color_error cc6666 | ||
| 19 | set --global fish_color_escape 00a6b2 | ||
| 20 | set --global fish_color_history_current --bold | ||
| 21 | set --global fish_color_host normal | ||
| 22 | set --global fish_color_host_remote | ||
| 23 | set --global fish_color_keyword | ||
| 24 | set --global fish_color_match --background=brblue | ||
| 25 | set --global fish_color_normal normal | ||
| 26 | set --global fish_color_operator 00a6b2 | ||
| 27 | set --global fish_color_option | ||
| 28 | set --global fish_color_param ffd787 | ||
| 29 | set --global fish_color_quote 87d7d7 | ||
| 30 | set --global fish_color_redirection 00afd7 | ||
| 31 | set --global fish_color_search_match white --background=brblack | ||
| 32 | set --global fish_color_selection white --bold --background=brblack | ||
| 33 | set --global fish_color_status red | ||
| 34 | set --global fish_color_user brgreen | ||
| 35 | set --global fish_color_valid_path --underline | ||
| 36 | set --global fish_pager_color_background | ||
| 37 | set --global fish_pager_color_completion normal | ||
| 38 | set --global fish_pager_color_description B3A06D | ||
| 39 | set --global fish_pager_color_prefix normal --bold --underline | ||
| 40 | set --global fish_pager_color_progress brwhite --background=cyan | ||
| 41 | set --global fish_pager_color_secondary_background | ||
| 42 | set --global fish_pager_color_secondary_completion | ||
| 43 | set --global fish_pager_color_secondary_description | ||
| 44 | set --global fish_pager_color_secondary_prefix | ||
| 45 | set --global fish_pager_color_selected_background --background=brblack | ||
| 46 | set --global fish_pager_color_selected_completion | ||
| 47 | set --global fish_pager_color_selected_description | ||
| 48 | set --global fish_pager_color_selected_prefix | ||
diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index e487f52..86de935 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables | |||
| @@ -3,44 +3,5 @@ | |||
| 3 | SETUVAR __fish_init_2_3_0:\x1d | 3 | SETUVAR __fish_init_2_3_0:\x1d |
| 4 | SETUVAR __fish_init_3_1_0:\x1d | 4 | SETUVAR __fish_init_3_1_0:\x1d |
| 5 | SETUVAR __fish_init_3_x:\x1d | 5 | SETUVAR __fish_init_3_x:\x1d |
| 6 | SETUVAR __fish_initialized:3800 | 6 | SETUVAR __fish_initialized:4300 |
| 7 | SETUVAR fish_color_autosuggestion:767676 | ||
| 8 | SETUVAR fish_color_cancel:\x2d\x2dreverse | ||
| 9 | SETUVAR fish_color_command:87d787 | ||
| 10 | SETUVAR fish_color_comment:6c6c6c | ||
| 11 | SETUVAR fish_color_cwd:green | ||
| 12 | SETUVAR fish_color_cwd_root:red | ||
| 13 | SETUVAR fish_color_end:ff8787 | ||
| 14 | SETUVAR fish_color_error:cc6666 | ||
| 15 | SETUVAR fish_color_escape:00a6b2 | ||
| 16 | SETUVAR fish_color_history_current:\x2d\x2dbold | ||
| 17 | SETUVAR fish_color_host:normal | ||
| 18 | SETUVAR fish_color_host_remote:\x1d | ||
| 19 | SETUVAR fish_color_keyword:\x1d | ||
| 20 | SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue | ||
| 21 | SETUVAR fish_color_normal:normal | ||
| 22 | SETUVAR fish_color_operator:00a6b2 | ||
| 23 | SETUVAR fish_color_option:\x1d | ||
| 24 | SETUVAR fish_color_param:ffd787 | ||
| 25 | SETUVAR fish_color_quote:87d7d7 | ||
| 26 | SETUVAR fish_color_redirection:00afd7 | ||
| 27 | SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack | ||
| 28 | SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack | ||
| 29 | SETUVAR fish_color_status:red | ||
| 30 | SETUVAR fish_color_user:brgreen | ||
| 31 | SETUVAR fish_color_valid_path:\x2d\x2dunderline | ||
| 32 | SETUVAR fish_greeting: | 7 | SETUVAR fish_greeting: |
| 33 | SETUVAR fish_key_bindings:fish_vi_key_bindings | ||
| 34 | SETUVAR fish_pager_color_background:\x1d | ||
| 35 | SETUVAR fish_pager_color_completion:normal | ||
| 36 | SETUVAR fish_pager_color_description:B3A06D | ||
| 37 | SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline | ||
| 38 | SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan | ||
| 39 | SETUVAR fish_pager_color_secondary_background:\x1d | ||
| 40 | SETUVAR fish_pager_color_secondary_completion:\x1d | ||
| 41 | SETUVAR fish_pager_color_secondary_description:\x1d | ||
| 42 | SETUVAR fish_pager_color_secondary_prefix:\x1d | ||
| 43 | SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack | ||
| 44 | SETUVAR fish_pager_color_selected_completion:\x1d | ||
| 45 | SETUVAR fish_pager_color_selected_description:\x1d | ||
| 46 | SETUVAR fish_pager_color_selected_prefix:\x1d | ||
