fish: add support for private/local configs
This commit is contained in:
parent
54c35e642c
commit
943d648173
1
fish/.gitignore
vendored
1
fish/.gitignore
vendored
@ -2,3 +2,4 @@ fish_variables
|
|||||||
fisher/
|
fisher/
|
||||||
fish_user_key_bindings.fish
|
fish_user_key_bindings.fish
|
||||||
fzf_key_bindings.fish
|
fzf_key_bindings.fish
|
||||||
|
private/
|
||||||
|
@ -57,6 +57,14 @@ test -d /sbin ; and set -x PATH $PATH /sbin
|
|||||||
alias vi='nvim'
|
alias vi='nvim'
|
||||||
alias vim='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
|
# Fish package manager
|
||||||
set -g fisher_path ~/.config/fish/fisher
|
set -g fisher_path ~/.config/fish/fisher
|
||||||
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..-1]
|
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user