nushell: config: fix switch command
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a696416730a7fd831e8dfde51397e6ea41577
This commit is contained in:
parent
0a37fb5863
commit
7ac4ac73c0
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ if not ($env_vars_file | path exists) {
|
|||
}
|
||||
|
||||
def switch [] {
|
||||
nh os switch --file ($env.NH_FLAKE | path join default.nix) (open /etc/hostname)
|
||||
nh os switch --file ($env.NH_FLAKE | path join default.nix) (open /etc/hostname | str trim)
|
||||
}
|
||||
|
||||
# fix sudo by prepending /run/wrappers/bin to the PATH.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue