Implement os setup using a function
This commit is contained in:
parent
f4f74a6aaa
commit
cd5f68d0ef
|
@ -2,6 +2,7 @@
|
|||
begin
|
||||
set -l dir (status dirname)
|
||||
set -q CONFIG_MODULE || set -l CONFIG_MODULE "$dir/config.nix"
|
||||
source "$dir/../../Common/OS/setup.fish"
|
||||
source "$dir/../../Common/Scripts/config.fish"
|
||||
|
||||
set -l mountDir (getConfig valhalla.partition.rootDir)
|
||||
|
@ -118,5 +119,5 @@ begin
|
|||
end
|
||||
end
|
||||
|
||||
source "$dir/../../Common/OS/setup.fish"
|
||||
runSetup
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
function runSetup
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../Scripts/config.fish"
|
||||
source "$dir/../Scripts/hooks.fish"
|
||||
|
|
Loading…
Reference in a new issue