From e5edc674930081e200def6e308996cc88ba79280 Mon Sep 17 00:00:00 2001 From: candifloss Date: Tue, 21 Jul 2026 16:31:46 +0530 Subject: [PATCH] Improved defaults and local overrides --- .gitignore | 5 ++-- conf.d/25_prompt_theme.fish | 7 +++-- conf.d/35_package_manager.fish | 29 +++++++++++++++------ conf.d/{81_modules.fish => 80_modules.fish} | 2 +- 4 files changed, 30 insertions(+), 13 deletions(-) rename conf.d/{81_modules.fish => 80_modules.fish} (73%) diff --git a/.gitignore b/.gitignore index d2f0e69..861811b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,11 @@ fish_variables # Ignore machine-specific configs +conf.d/21_overrides.fish conf.d/49_aliases_local.fish conf.d/59_abbr_local.fish conf.d/80_modules_local.fish -conf.d/90_local.fish +conf.d/90_misc_local.fish conf.d/local.d/ functions/local/ completions/local/ @@ -15,4 +16,4 @@ completions/alacritty.fish completions/adu.fish # Scratchpad -test/ \ No newline at end of file +test/ diff --git a/conf.d/25_prompt_theme.fish b/conf.d/25_prompt_theme.fish index 9e541c9..a535f71 100644 --- a/conf.d/25_prompt_theme.fish +++ b/conf.d/25_prompt_theme.fish @@ -6,10 +6,13 @@ # To print the active prompt theme name: # Use function `fish_theme` -# Set the theme name. +# Set the theme name in `conf.d/21_overrides.fish`. +# Example: +# set -g FISH_PROMPT_THEME minimaline # Default: "default" # The theme name must match the theme directory name. -set -g FISH_PROMPT_THEME default +set -q FISH_PROMPT_THEME +or set -g FISH_PROMPT_THEME default # Load theme fish_load_theme $FISH_PROMPT_THEME \ No newline at end of file diff --git a/conf.d/35_package_manager.fish b/conf.d/35_package_manager.fish index 47101a8..f8457cf 100644 --- a/conf.d/35_package_manager.fish +++ b/conf.d/35_package_manager.fish @@ -1,13 +1,26 @@ # Package manager - +# +# Set the package manager name in `conf.d/21_overrides.fish`. +# Example: +# set -g FISH_PACKAGE_MANAGER dnf +# Default: "apt" +# The theme name must match the theme directory name. +# # Supported: -# ☑ apt -# ☑ dnf -# ☑ pacman -# ☐ zypper -# ☐ apk -# ☐ xbps +# +---+-----------------+---------------------+ +# | | Package Manager | OS | +# +---+-----------------+---------------------+ +# | ☑ | apt | (Debian-based) | +# | ☑ | dnf | (RHEL/Fedora-based) | +# | ☑ | pacman | (Arch-based) | +# | ☐ | zypper | (SUSE) | +# | ☐ | apk | (Alpine) | +# | ☐ | xbps | (Void) | +# | ☐ | pkg_bsd | (FreeBSD) | +# | ☐ | pkg_redox | (RedoxOS) | +# +---+-----------------+---------------------+ -set -g FISH_PACKAGE_MANAGER apt +set -q FISH_PACKAGE_MANAGER +or set -g FISH_PACKAGE_MANAGER apt fish_load_package_manager $FISH_PACKAGE_MANAGER \ No newline at end of file diff --git a/conf.d/81_modules.fish b/conf.d/80_modules.fish similarity index 73% rename from conf.d/81_modules.fish rename to conf.d/80_modules.fish index e8e3ac5..1236c2b 100644 --- a/conf.d/81_modules.fish +++ b/conf.d/80_modules.fish @@ -1,6 +1,6 @@ # Load enabled modules -# Specify the list of modules to load in `conf.d/80_modules_local.fish` +# Specify the list of modules to load in `conf.d/21_overrides.fish` # Example: # set -g FISH_MODULES \ # login_x11 \