mirror of https://git.jolheiser.com/dotnix.git
parent
a6b22d550c
commit
7fa0fb1617
|
@ -14,15 +14,15 @@ def sshdev [port: int = 8080] {
|
|||
}
|
||||
|
||||
def nixdev [
|
||||
name: string # Name of the dev shell to use
|
||||
--bash: bool # Use bash instead of nushell
|
||||
name: string # Name of the dev shell to use
|
||||
--bash: bool # Use bash instead of nushell
|
||||
--refresh: bool # Refresh the flake
|
||||
] {
|
||||
let url = $"git+https://git.jojodev.com/jolheiser/dev-shells\#($name)"
|
||||
if ($bash) {
|
||||
^nix develop $url
|
||||
} else {
|
||||
^nix develop $url -c nu
|
||||
}
|
||||
let c = if ($bash) {""} else {"-c nu"}
|
||||
let refresh = if ($refresh) {"--refresh"} else {""}
|
||||
let cmd = $"nix develop ($refresh) ($url) ($c)"
|
||||
^nu -c $cmd
|
||||
}
|
||||
|
||||
## Other ##
|
||||
|
|
Loading…
Reference in New Issue