diff --git a/apps/nushell/jolheiser.nu b/apps/nushell/jolheiser.nu index 043b9eb..5efd9ac 100644 --- a/apps/nushell/jolheiser.nu +++ b/apps/nushell/jolheiser.nu @@ -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 ##