parent
14d2d9dd13
commit
a6b22d550c
|
@ -13,8 +13,16 @@ def sshdev [port: int = 8080] {
|
|||
^ssh -i ~/.ssh/dev -N -T -R $"1337:localhost:($port)" dev@jolheiser.com
|
||||
}
|
||||
|
||||
def dev [name: string] {
|
||||
^nix develop $"git+https://git.jojodev.com/jolheiser/dev-shells\#($name)" -c nu
|
||||
def nixdev [
|
||||
name: string # Name of the dev shell to use
|
||||
--bash: bool # Use bash instead of nushell
|
||||
] {
|
||||
let url = $"git+https://git.jojodev.com/jolheiser/dev-shells\#($name)"
|
||||
if ($bash) {
|
||||
^nix develop $url
|
||||
} else {
|
||||
^nix develop $url -c nu
|
||||
}
|
||||
}
|
||||
|
||||
## Other ##
|
||||
|
|
Reference in New Issue