mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-24 07:36:32 +00:00
Add the ability to source local versions of any additional omf config file
This commit is contained in:
parent
e07808421a
commit
765afa924e
1
assets/default/fish-config/.gitignore
vendored
Normal file
1
assets/default/fish-config/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.local.fish
|
@ -1,2 +1,14 @@
|
|||||||
source $OMF_CONFIG/paths.fish
|
function source_config
|
||||||
source $OMF_CONFIG/alias.fish
|
# Sources a config file and corresponding local config file if it exists
|
||||||
|
set shared_config "$OMF_CONFIG/$argv[1].fish"
|
||||||
|
set local_config "$OMF_CONFIG/$argv[1].local.fish"
|
||||||
|
if test -f "$shared_config"
|
||||||
|
source "$shared_config"
|
||||||
|
end
|
||||||
|
if test -f "$local_config"
|
||||||
|
source "$local_config"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
source_config paths
|
||||||
|
source_config alias
|
||||||
|
Loading…
Reference in New Issue
Block a user