diff --git a/home.nix b/home.nix index 6d0a1f2..80919ab 100644 --- a/home.nix +++ b/home.nix @@ -16,6 +16,8 @@ nmap file freerdp + bitwarden-desktop + bitwarden-cli ]; # -------------------------- @@ -62,6 +64,19 @@ oh-my-zsh.enable = true; oh-my-zsh.theme = "agnoster"; initContent = '' + alias nix-shell='nix-shell --run $SHELL' + nix() { + if [[ $1 == "develop" ]]; then + shift + command nix develop -c $SHELL "$@" + else + command nix "$@" + fi + } + + if [ -n "$NIX_PROJECT_SHELL" ]; then + PROMPT="($NIX_PROJECT_SHELL)$PROMPT" + fi # Only start Zellij if we're in an interactive terminal if [ -z "$ZELLIJ" ] && [ "$TERM" != "linux" ]; then exec zellij