diff --git a/modules/prompt/functions/prompt_giddie_setup b/modules/prompt/functions/prompt_giddie_setup index 5a14ffe..c1dcff5 100644 --- a/modules/prompt/functions/prompt_giddie_setup +++ b/modules/prompt/functions/prompt_giddie_setup @@ -15,11 +15,11 @@ # function +vi-set_novcs_prompt_symbol { - _prompt_giddie_symbol=')' + _prompt_giddie_symbol='❯❯❯' } function +vi-set_vcs_prompt_symbol { - _prompt_giddie_symbol='±' + _prompt_giddie_symbol='❯❯❯' } function +vi-git_precmd { @@ -35,6 +35,12 @@ function prompt_giddie_precmd { vcs_info } +function prompt_giddie_nix_shell { + if [ ! -z "$IN_NIX_SHELL" ]; then + echo -n "nix-shell " + fi +} + function prompt_giddie_setup { setopt LOCAL_OPTIONS unsetopt XTRACE KSH_ARRAYS @@ -68,7 +74,7 @@ function prompt_giddie_setup { # Define prompts. PROMPT='%(?..%F{red}%B-> [%?]%b%f )%F{magenta}%n%f@%F{yellow}%m%f|%F{green}${_prompt_giddie_pwd}%f${vcs_info_msg_0_} -%F{blue}${_prompt_giddie_symbol}%f ' +%F{blue}$(prompt_giddie_nix_shell)${_prompt_giddie_symbol}%f ' RPROMPT='${editor_info[keymap]}' SPROMPT='zsh: correct %F{magenta}%R%f to %F{green}%r%f [nyae]? ' }