parent
a6b22d550c
commit
7fa0fb1617
|
@ -16,13 +16,13 @@ def sshdev [port: int = 8080] {
|
|||
def nixdev [
|
||||
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 ##
|
||||
|
|
Reference in New Issue