46 current 2024-04-18 17:47:19 23.11.20240405.72da83d 6.1.84 *
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user