fish: add support for private/local configs

This commit is contained in:
Charles Gould 2020-03-13 02:37:23 -04:00
parent 54c35e642c
commit 943d648173
2 changed files with 9 additions and 0 deletions

1
fish/.gitignore vendored
View File

@ -2,3 +2,4 @@ fish_variables
fisher/
fish_user_key_bindings.fish
fzf_key_bindings.fish
private/

View File

@ -57,6 +57,14 @@ test -d /sbin ; and set -x PATH $PATH /sbin
alias vi='nvim'
alias vim='nvim'
# Fish private configs
set -g fish_private_path ~/.config/fish/private
test -d $fish_private_path/functions ; and set fish_function_path $fish_function_path[1] $fish_private_path/functions $fish_function_path[2..-1]
test -d $fish_private_path/completions ; and set fish_complete_path $fish_complete_path[1] $fish_private_path/completions $fish_complete_path[2..-1]
for file in $fish_private_path/conf.d/*.fish
builtin source $file 2> /dev/null
end
# Fish package manager
set -g fisher_path ~/.config/fish/fisher
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..-1]