Commit 7d472207 authored by Harrison Heck's avatar Harrison Heck Committed by Jorge Bucaran

Add checks to see if file exists before source.

Fixes #524.
parent e7abc749
......@@ -43,12 +43,13 @@ end
for path in $OMF_PATH/lib $OMF_PATH/lib/git $paths $theme $config
contains -- (basename $path) $ignore; and continue
autoload $path $path/completions
source $path/(basename $path).fish
source $path/(basename $path).fish ^/dev/null
and emit init_(basename $path) $path
end
autoload $OMF_CONFIG/functions
autoload $user_function_path
source {$OMF_PATH,$OMF_CONFIG}/events.fish
source $OMF_CONFIG/init.fish
for path in {$OMF_PATH,$OMF_CONFIG}/events.fish $OMF_CONFIG/init.fish
source "$path" ^/dev/null
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment