Improved defaults and local overrides

This commit is contained in:
Candifloss 2026-07-21 16:31:46 +05:30
parent fc5d4b1f28
commit e5edc67493
4 changed files with 30 additions and 13 deletions

3
.gitignore vendored
View File

@ -2,10 +2,11 @@
fish_variables fish_variables
# Ignore machine-specific configs # Ignore machine-specific configs
conf.d/21_overrides.fish
conf.d/49_aliases_local.fish conf.d/49_aliases_local.fish
conf.d/59_abbr_local.fish conf.d/59_abbr_local.fish
conf.d/80_modules_local.fish conf.d/80_modules_local.fish
conf.d/90_local.fish conf.d/90_misc_local.fish
conf.d/local.d/ conf.d/local.d/
functions/local/ functions/local/
completions/local/ completions/local/

View File

@ -6,10 +6,13 @@
# To print the active prompt theme name: # To print the active prompt theme name:
# Use function `fish_theme` # 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" # Default: "default"
# The theme name must match the theme directory name. # 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 # Load theme
fish_load_theme $FISH_PROMPT_THEME fish_load_theme $FISH_PROMPT_THEME

View File

@ -1,13 +1,26 @@
# Package manager # 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: # Supported:
# ☑ apt # +---+-----------------+---------------------+
# ☑ dnf # | | Package Manager | OS |
# ☑ pacman # +---+-----------------+---------------------+
# ☐ zypper # || apt | (Debian-based) |
# ☐ apk # || dnf | (RHEL/Fedora-based) |
# ☐ xbps # || 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 fish_load_package_manager $FISH_PACKAGE_MANAGER

View File

@ -1,6 +1,6 @@
# Load enabled modules # 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: # Example:
# set -g FISH_MODULES \ # set -g FISH_MODULES \
# login_x11 \ # login_x11 \