🚚 Rename config.fish includes to .config.fish
Rename all config.fish includes to have a suffix of .config.fish to better distinguish from installation files.
This commit is contained in:
parent
869e40d276
commit
0bac958a0b
3 changed files with 4 additions and 4 deletions
|
@ -23,20 +23,20 @@ if [ -e "$HOME/.local.env" ]
|
|||
end
|
||||
|
||||
# All fish dotfiles.
|
||||
set config_files $DOT/**/*.fish
|
||||
set config_files $DOT/**/*.config.fish
|
||||
|
||||
# Load path files first.
|
||||
for file in (string match -r '^.*\/path.fish$' $config_files)
|
||||
for file in (string match -r '^.*\/path.config.fish$' $config_files)
|
||||
source $file
|
||||
end
|
||||
|
||||
# Load everything else, except completion.
|
||||
for file in (string match -v -r '^.*\/(path|completion|install)\.fish$' $config_files)
|
||||
for file in (string match -v -r '^.*\/(path|completion)\.config.fish$' $config_files)
|
||||
source $file
|
||||
end
|
||||
|
||||
# Load completions functions.
|
||||
for file in (string match -r '^.*\/completion.fish$' $config_files)
|
||||
for file in (string match -r '^.*\/completion.config.fish$' $config_files)
|
||||
source $file
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue