2015-11-07 19:30:58 +00:00
|
|
|
function source_config
|
|
|
|
# Sources a config file and corresponding local config file if it exists
|
2016-02-12 01:17:28 +00:00
|
|
|
set shared_config "$fisher_config/init/$argv[1].fish"
|
|
|
|
set local_config "$fisher_config/init/$argv[1].local.fish"
|
2015-11-07 19:30:58 +00:00
|
|
|
if test -f "$shared_config"
|
|
|
|
source "$shared_config"
|
|
|
|
end
|
|
|
|
if test -f "$local_config"
|
|
|
|
source "$local_config"
|
|
|
|
end
|
|
|
|
end
|