diff --git a/home/jonas/static/omz_custom/themes/my_bureau.zsh-theme b/home/jonas/static/omz_custom/themes/my_bureau.zsh-theme index b74cf53..ec294e0 100644 --- a/home/jonas/static/omz_custom/themes/my_bureau.zsh-theme +++ b/home/jonas/static/omz_custom/themes/my_bureau.zsh-theme @@ -30,6 +30,14 @@ bureau_nix_shell () { fi } +bureau_nix_shell_prompt () { + if [ -n "$IN_NIX_SHELL" ]; then + echo -n "[nix]" + else + echo -n "" + fi +} + bureau_git_info () { local ref ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ @@ -139,7 +147,7 @@ bureau_precmd () { } setopt prompt_subst -PROMPT='> $_LIBERTY ' +PROMPT='> $(bureau_nix_shell_prompt) $_LIBERTY ' RPROMPT='$(nvm_prompt_info) $(bureau_nix_shell) $(bureau_git_prompt)' autoload -U add-zsh-hook diff --git a/hosts/comfy-station/configuration.nix b/hosts/comfy-station/configuration.nix index 5bc707a..887f5ed 100644 --- a/hosts/comfy-station/configuration.nix +++ b/hosts/comfy-station/configuration.nix @@ -53,7 +53,9 @@ borgbackup borgmatic docker + docker-compose git + nix-index nix-output-monitor ranger sops