diff options
| author | Luca Pattocchio <pattocchioluca@gmail.com> | 2026-03-26 10:57:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 10:57:19 +0100 |
| commit | e8cd0de2afcdee44c6e12f818409177cc0c2d98f (patch) | |
| tree | fa40852291c3754058fa472527df43e95a308256 | |
| parent | fix: properly display web server status with default ports in share plugin (#... (diff) | |
| download | sl0ppij-e8cd0de2afcdee44c6e12f818409177cc0c2d98f.tar.gz sl0ppij-e8cd0de2afcdee44c6e12f818409177cc0c2d98f.tar.xz sl0ppij-e8cd0de2afcdee44c6e12f818409177cc0c2d98f.zip | |
fix: user themes from `~/.config/zellij/themes` not loaded on session start (#4892)
* Fix user themes in config folder not loaded on session start
* preserve layout config dir
---------
Co-authored-by: Aram Drevekenin <aram@poor.dev>
| -rw-r--r-- | zellij-utils/src/input/cli_assets.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zellij-utils/src/input/cli_assets.rs b/zellij-utils/src/input/cli_assets.rs index 2fb1bd5d..0319cc38 100644 --- a/zellij-utils/src/input/cli_assets.rs +++ b/zellij-utils/src/input/cli_assets.rs @@ -72,8 +72,13 @@ impl CliAssets { .as_ref() .and_then(|o| o.theme_dir.clone()) .or_else(|| { - get_theme_dir(config_with_merged_layout_opts.options.theme_dir.clone()) - .or_else(find_default_config_dir) + config_with_merged_layout_opts + .options + .theme_dir + .clone() + .or_else(|| { + get_theme_dir(self.config_dir.clone().or_else(find_default_config_dir)) + }) .filter(|dir| dir.exists()) }); if let Some(themes) = user_theme_dir.and_then(|u| Themes::from_dir(u).ok()) { |
