Skip to content

Commit

Permalink
p10k tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Dec 3, 2024
1 parent bd54d22 commit 62fdd1a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions nix/home-manager/astral/cli/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,10 @@
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=2
# Red prompt symbol if the last command failed.
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=1
# Default prompt symbol.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='>'
# Prompt symbol in command vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='<'
# Prompt symbol in visual vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
# Prompt symbol in overwrite vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='^'
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true

# https://www.reddit.com/r/zsh/comments/15cjikj/comment/jtwxrkr/
POWERLEVEL9K_PROMPT_CHAR_CONTENT_EXPANSION='%(!.#.%)'

# No line terminator if prompt_char is the last segment.
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
# No line introducer if prompt_char is the first segment.
Expand Down Expand Up @@ -1590,7 +1585,7 @@
# - always: Trim down prompt when accepting a command line.
# - same-dir: Trim down prompt when accepting a command line unless this is the first command
# typed after changing current working directory.
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=same-dir

# Instant prompt mode.
#
Expand Down

0 comments on commit 62fdd1a

Please sign in to comment.