Fix paths for system-wide configs
This commit is contained in:
parent
ae7535d8c1
commit
b6639286b0
@ -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
|
||||
@ -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`
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user