diff --git a/.config/bash/module/Nix.sh b/.config/bash/module/Nix.sh index 652e162..9e4be37 100644 --- a/.config/bash/module/Nix.sh +++ b/.config/bash/module/Nix.sh @@ -43,7 +43,11 @@ function nix_shell() { local target="${1}" [[ "${target}" = "" ]] && target="default" - NIX_SHELL="${target}" nix develop ".#${target}" + if [[ "${target}" = "default" ]]; then + NIX_SHELL="${target}" nix develop + else + NIX_SHELL="${target}" nix develop ".#${target}" + fi } alias shell="nix_shell"