46 current 2024-04-18 17:47:19 23.11.20240405.72da83d 6.1.84 *

This commit is contained in:
Jonas Röger 2024-04-18 17:47:27 +02:00
parent 79fbf3ab6d
commit 3b07849c0b
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -53,7 +53,9 @@
borgbackup
borgmatic
docker
docker-compose
git
nix-index
nix-output-monitor
ranger
sops