Fix paths for system-wide configs

This commit is contained in:
Candifloss 2026-07-20 19:47:42 +05:30
parent ae7535d8c1
commit b6639286b0
5 changed files with 9 additions and 9 deletions

View File

@ -4,9 +4,9 @@ fish_add_path /opt/misc_scripts
fish_add_path ~/.cargo/bin
# Additional function paths
set -a fish_function_path $__fish_config_dir/functions/desktop
set -a fish_function_path $__fish_config_dir/functions/work
set -a fish_function_path $__fish_sysconf_dir/functions/desktop
set -a fish_function_path $__fish_sysconf_dir/functions/work
# Additional completion paths
set -a fish_complete_path $__fish_config_dir/completions/desktop
set -a fish_complete_path $__fish_config_dir/completions/work
set -a fish_complete_path $__fish_sysconf_dir/completions/desktop
set -a fish_complete_path $__fish_sysconf_dir/completions/work

View File

@ -1,7 +1,7 @@
# Prompt theme
# To get a list of available themes:
# - Check the theme directories in $__fish_config_dir/themes/
# - Check the theme directories in $__fish_sysconf_dir/themes/
# - Or use the function `fish_list_themes`
# To print the active prompt theme name:
# Use function `fish_theme`

View File

@ -1,5 +1,5 @@
function fish_list_themes --description "List available prompt themes"
for theme in $__fish_config_dir/themes/*
for theme in $__fish_sysconf_dir/themes/*
if test -d $theme
basename $theme
end

View File

@ -8,8 +8,8 @@ function fish_load_package_manager \
set -l pkg $argv[1]
set -l common_dir $__fish_config_dir/pkg/common
set -l pkg_dir $__fish_config_dir/pkg/$pkg
set -l common_dir $__fish_sysconf_dir/pkg/common
set -l pkg_dir $__fish_sysconf_dir/pkg/$pkg
if not test -d $pkg_dir
echo "fish_load_package_manager: '$pkg' not found." >&2

View File

@ -5,7 +5,7 @@ function fish_load_theme --description "Load a Fish prompt theme"
end
set -l theme $argv[1]
set -l theme_dir $__fish_config_dir/themes/$theme
set -l theme_dir $__fish_sysconf_dir/themes/$theme
if not test -d $theme_dir
echo "fish_load_theme: Theme '$theme' not found." >&2