From 3b07849c0ba3652f8b2c0fc13cada5a7b7b78f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Thu, 18 Apr 2024 17:47:27 +0200 Subject: [PATCH] 46 current 2024-04-18 17:47:19 23.11.20240405.72da83d 6.1.84 * --- .../jonas/static/omz_custom/themes/my_bureau.zsh-theme | 10 +++++++++- hosts/comfy-station/configuration.nix | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) 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