fixed some stuff and made it compatable with fisher
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# 1. Point to your custom Fisher repository
|
||||
set -gx fisher_path ~/.config/fisher
|
||||
if test -d $fisher_path
|
||||
# 2. Append the custom folders to Fish's native search lists if they aren't already there
|
||||
if not contains $fisher_path/functions $fish_function_path
|
||||
set fish_function_path $fisher_path/functions $fish_function_path
|
||||
end
|
||||
|
||||
if not contains $fisher_path/completions $fish_complete_path
|
||||
set fish_complete_path $fisher_path/completions $fish_complete_path
|
||||
end
|
||||
|
||||
# 3. Simulate the conf.d execution by natively sourcing third-party configuration files
|
||||
for file in $fisher_path/conf.d/*.fish
|
||||
if not test -s $file
|
||||
continue
|
||||
end
|
||||
source $file
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user