1
0
Fork 0

feat: refresh flake

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-07-22 16:56:55 -05:00
parent a6b22d550c
commit 7fa0fb1617
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 7 additions and 7 deletions

View File

@ -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 ##