mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-03 23:17:40 +08:00
automatically loaded files should not have the suffix '.fish' otherwise fish thinks they are functions
This commit is contained in:
parent
edff7dea0a
commit
05b4207a66
@ -30,7 +30,7 @@ end
|
||||
|
||||
function _fish_source_plugin_load_file
|
||||
set -l plugin $argv[1]
|
||||
set -l load_file_path "plugins/$plugin/$plugin.load.fish"
|
||||
set -l load_file_path "plugins/$plugin/$plugin.load"
|
||||
|
||||
if test -e $fish_path/$load_file_path
|
||||
. $fish_path/$load_file_path
|
||||
@ -69,7 +69,7 @@ end
|
||||
set fish_function_path $fish_path/themes/$fish_theme $fish_function_path
|
||||
|
||||
# Source all files inside custom folder
|
||||
for config_file in $fish_custom/*.load.fish
|
||||
for config_file in $fish_custom/*.load
|
||||
. $config_file
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user