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