Files
fish-shell/share/functions
Mahmoud Al-Qudsi 22332b892d Fix fish_config theme save
The documentation states that running `fish_config theme save` after
`fish_config theme choose [theme_name]` will result in "saving" the
currently chosen theme, but this does not match the actual behavior of
`fish_config theme save` which expects a trailing argument specifying
the name of the theme to select/persist.

Given that the documented way has been included in a release and that it
makes more sense than calling `fish_config theme save xxx` when you are
*loading from* xxx and not *saving to* xxx, this patch revises
`fish_config.fish` to support the documented behavior.

When `fish_config theme save xxx` is used, xxx is loaded w/ its specified colors
saved to the according variables in the universal scope. But if `fish_config
theme save` is used without a theme's name specified, then the currently
specified (known) fish color variables are persisted from whatever scope they're
currently in (usually in the global scope from previewing a theme) to universal
variables of the same name.

This does *not* catch color variables unknown to fish! If a theme and a
prompt agree on some variable to hold some color but it's not a color variable
known to fish, it won't be persisted!

Closes #9088.
2022-10-22 13:19:59 -05:00
..
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2019-05-05 12:09:25 +02:00
2020-11-22 14:39:48 +01:00
2020-04-21 21:11:26 +02:00
2022-06-08 21:23:43 +02:00
2021-11-11 16:46:23 +01:00
2022-08-02 00:42:37 -07:00
2022-01-27 16:21:22 -08:00
2017-10-01 01:11:17 -07:00
2022-06-16 18:43:28 +02:00
2022-10-22 13:19:59 -05:00
2022-01-27 16:21:22 -08:00
2022-01-27 16:21:22 -08:00
2022-01-27 16:21:22 -08:00
2022-09-10 17:42:16 +02:00
2022-03-24 20:11:39 +01:00
2016-11-27 21:27:22 -08:00
2022-10-18 18:05:16 +02:00
2021-12-02 02:22:40 -08:00
2021-09-24 18:25:27 +02:00
2021-05-14 21:49:53 +02:00
2022-09-04 09:18:57 +02:00
2017-04-05 15:31:13 -07:00
2022-01-27 16:21:22 -08:00
2022-04-23 16:35:52 -07:00