Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1641 lines
83 KiB

4 years ago
  1. # Generated by Powerlevel10k configuration wizard on 2020-07-02 at 12:51 CEST.
  2. # Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 15764.
  3. # Wizard options: awesome-fontconfig + powerline, large icons, rainbow, unicode,
  4. # angled separators, sharp heads, flat tails, 1 line, compact, few icons, concise,
  5. # transient_prompt, instant_prompt=verbose.
  6. # Type `p10k configure` to generate another config.
  7. #
  8. # Config for Powerlevel10k with powerline prompt style with colorful background.
  9. # Type `p10k configure` to generate your own config based on it.
  10. #
  11. # Tip: Looking for a nice color? Here's a one-liner to print colormap.
  12. #
  13. # for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
  14. # Temporarily change options.
  15. 'builtin' 'local' '-a' 'p10k_config_opts'
  16. [[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
  17. [[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
  18. [[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
  19. 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
  20. () {
  21. emulate -L zsh -o extended_glob
  22. # Unset all configuration options. This allows you to apply configuration changes without
  23. # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
  24. unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
  25. # Zsh >= 5.1 is required.
  26. autoload -Uz is-at-least && is-at-least 5.1 || return
  27. # The list of segments shown on the left. Fill it with the most important segments.
  28. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
  29. os_icon # os identifier
  30. dir # current directory
  31. vcs # git status
  32. #prompt_char # prompt symbol
  33. )
  34. # The list of segments shown on the right. Fill it with less important segments.
  35. # Right prompt on the last prompt line (where you are typing your commands) gets
  36. # automatically hidden when the input line reaches it. Right prompt above the
  37. # last prompt line gets hidden if it would overlap with left prompt.
  38. typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
  39. #status # exit code of the last command
  40. command_execution_time # duration of the last command
  41. background_jobs # presence of background jobs
  42. direnv # direnv status (https://direnv.net/)
  43. asdf # asdf version manager (https://github.com/asdf-vm/asdf)
  44. virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
  45. anaconda # conda environment (https://conda.io/)
  46. pyenv # python environment (https://github.com/pyenv/pyenv)
  47. goenv # go environment (https://github.com/syndbg/goenv)
  48. nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
  49. nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
  50. nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
  51. # node_version # node.js version
  52. # go_version # go version (https://golang.org)
  53. # rust_version # rustc version (https://www.rust-lang.org)
  54. # dotnet_version # .NET version (https://dotnet.microsoft.com)
  55. # php_version # php version (https://www.php.net/)
  56. # laravel_version # laravel php framework version (https://laravel.com/)
  57. # java_version # java version (https://www.java.com/)
  58. # package # name@version from package.json (https://docs.npmjs.com/files/package.json)
  59. rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
  60. rvm # ruby version from rvm (https://rvm.io)
  61. fvm # flutter version management (https://github.com/leoafarias/fvm)
  62. luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv)
  63. jenv # java version from jenv (https://github.com/jenv/jenv)
  64. plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
  65. phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
  66. haskell_stack # haskell version from stack (https://haskellstack.org/)
  67. kubecontext # current kubernetes context (https://kubernetes.io/)
  68. terraform # terraform workspace (https://www.terraform.io)
  69. aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
  70. aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
  71. azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
  72. gcloud # google cloud cli account and project (https://cloud.google.com/)
  73. google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
  74. context # user@hostname
  75. nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
  76. ranger # ranger shell (https://github.com/ranger/ranger)
  77. nnn # nnn shell (https://github.com/jarun/nnn)
  78. vim_shell # vim shell indicator (:sh)
  79. midnight_commander # midnight commander shell (https://midnight-commander.org/)
  80. nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
  81. vi_mode # vi mode (you don't need this if you've enabled prompt_char)
  82. # vpn_ip # virtual private network indicator
  83. # load # CPU load
  84. # disk_usage # disk usage
  85. # ram # free RAM
  86. # swap # used swap
  87. todo # todo items (https://github.com/todotxt/todo.txt-cli)
  88. timewarrior # timewarrior tracking status (https://timewarrior.net/)
  89. taskwarrior # taskwarrior task count (https://taskwarrior.org/)
  90. # time # current time
  91. # ip # ip address and bandwidth usage for a specified network interface
  92. # public_ip # public IP address
  93. # proxy # system-wide http/https/ftp proxy
  94. # battery # internal battery
  95. # wifi # wifi speed
  96. # example # example user-defined segment (see prompt_example function below)
  97. )
  98. # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
  99. typeset -g POWERLEVEL9K_MODE=awesome-fontconfig
  100. # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
  101. # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
  102. typeset -g POWERLEVEL9K_ICON_PADDING=moderate
  103. # When set to true, icons appear before content on both sides of the prompt. When set
  104. # to false, icons go after content. If empty or not set, icons go before content in the left
  105. # prompt and after content in the right prompt.
  106. #
  107. # You can also override it for a specific segment:
  108. #
  109. # POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false
  110. #
  111. # Or for a specific segment in specific state:
  112. #
  113. # POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
  114. typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
  115. # Add an empty line before each prompt.
  116. typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
  117. # Connect left prompt lines with these symbols. You'll probably want to use the same color
  118. # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
  119. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%242F╭─a'
  120. typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%242F├─'
  121. typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%242F╰─'
  122. # Connect right prompt lines with these symbols.
  123. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%242F─╮'
  124. typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%242F─┤'
  125. typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%242F─╯'
  126. # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
  127. # '─'. The last two make it easier to see the alignment between left and right prompt and to
  128. # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
  129. # for more compact prompt if using using this option.
  130. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '
  131. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
  132. typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
  133. if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
  134. # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
  135. # ornaments defined above.
  136. typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242
  137. # Start filler from the edge of the screen if there are no left segments on the first line.
  138. typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
  139. # End filler on the edge of the screen if there are no right segments on the first line.
  140. typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
  141. fi
  142. # Separator between same-color segments on the left.
  143. typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0B1'
  144. # Separator between same-color segments on the right.
  145. typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0B3'
  146. # Separator between different-color segments on the left.
  147. typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B4'
  148. # Separator between different-color segments on the right.
  149. typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2'
  150. # The right end of left prompt.
  151. typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B4'
  152. # The left end of right prompt.
  153. typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B6'
  154. # The left end of left prompt.
  155. typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B6'
  156. # The right end of right prompt.
  157. typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B4'
  158. # Left prompt terminator for lines without any segments.
  159. typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
  160. #################################[ os_icon: os identifier ]##################################
  161. # OS identifier color.
  162. typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=15
  163. typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=105
  164. # Custom icon.
  165. typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='א'
  166. ################################[ prompt_char: prompt symbol ]################################
  167. # Transparent background.
  168. typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
  169. # Green prompt symbol if the last command succeeded.
  170. typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76
  171. # Red prompt symbol if the last command failed.
  172. typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
  173. # Default prompt symbol.
  174. typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
  175. # Prompt symbol in command vi mode.
  176. typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
  177. # Prompt symbol in visual vi mode.
  178. typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
  179. # Prompt symbol in overwrite vi mode.
  180. typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
  181. typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
  182. # No line terminator if prompt_char is the last segment.
  183. typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
  184. # No line introducer if prompt_char is the first segment.
  185. typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
  186. # No surrounding whitespace.
  187. typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE=
  188. ##################################[ dir: current directory ]##################################
  189. # Current directory background color.
  190. typeset -g POWERLEVEL9K_DIR_BACKGROUND=105
  191. # Default current directory foreground color.
  192. typeset -g POWERLEVEL9K_DIR_FOREGROUND=15
  193. # If directory is too long, shorten some of its segments to the shortest possible unique
  194. # prefix. The shortened directory can be tab-completed to the original.
  195. typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
  196. # Replace removed segment suffixes with this symbol.
  197. typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
  198. # Color of the shortened directory segments.
  199. typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=15
  200. # Color of the anchor directory segments. Anchor segments are never shortened. The first
  201. # segment is always an anchor.
  202. typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=15
  203. # Display anchor directory segments in bold.
  204. typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
  205. # Don't shorten directories that contain any of these files. They are anchors.
  206. local anchor_files=(
  207. .bzr
  208. .citc
  209. .git
  210. .hg
  211. .node-version
  212. .python-version
  213. .go-version
  214. .ruby-version
  215. .lua-version
  216. .java-version
  217. .perl-version
  218. .php-version
  219. .tool-version
  220. .shorten_folder_marker
  221. .svn
  222. .terraform
  223. CVS
  224. Cargo.toml
  225. composer.json
  226. go.mod
  227. package.json
  228. stack.yaml
  229. )
  230. typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
  231. # If set to "first" ("last"), remove everything before the first (last) subdirectory that contains
  232. # files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is
  233. # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first)
  234. # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers
  235. # and other directories don't.
  236. typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
  237. # Don't shorten this many last directory segments. They are anchors.
  238. typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
  239. # Shorten directory if it's longer than this even if there is space for it. The value can
  240. # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
  241. # directory will be shortened only when prompt doesn't fit or when other parameters demand it
  242. # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
  243. # If set to `0`, directory will always be shortened to its minimum length.
  244. typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
  245. # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
  246. # many columns for typing commands.
  247. typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
  248. # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least
  249. # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands.
  250. typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
  251. # If set to true, embed a hyperlink into the directory. Useful for quickly
  252. # opening a directory in the file manager simply by clicking the link.
  253. # Can also be handy when the directory is shortened, as it allows you to see
  254. # the full directory that was used in previous commands.
  255. typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
  256. # Enable special styling for non-writable directories. See POWERLEVEL9K_LOCK_ICON and
  257. # POWERLEVEL9K_DIR_CLASSES below.
  258. typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v2
  259. # The default icon shown next to non-writable directories when POWERLEVEL9K_DIR_SHOW_WRITABLE is
  260. # set to v2.
  261. # typeset -g POWERLEVEL9K_LOCK_ICON='⭐'
  262. # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
  263. # directories. It must be an array with 3 * N elements. Each triplet consists of:
  264. #
  265. # 1. A pattern against which the current directory ($PWD) is matched. Matching is done with
  266. # extended_glob option enabled.
  267. # 2. Directory class for the purpose of styling.
  268. # 3. An empty string.
  269. #
  270. # Triplets are tried in order. The first triplet whose pattern matches $PWD wins.
  271. #
  272. # If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v2 and the current directory is not writable,
  273. # its class gets suffix _NOT_WRITABLE.
  274. #
  275. # For example, given these settings:
  276. #
  277. # typeset -g POWERLEVEL9K_DIR_CLASSES=(
  278. # '~/work(|/*)' WORK ''
  279. # '~(|/*)' HOME ''
  280. # '*' DEFAULT '')
  281. #
  282. # Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with class
  283. # WORK or WORK_NOT_WRITABLE.
  284. #
  285. # Simply assigning classes to directories don't have any visible effects. It merely gives you an
  286. # option to define custom colors and icons for different directory classes.
  287. #
  288. # # Styling for WORK.
  289. # typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐'
  290. # typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4
  291. # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254
  292. # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250
  293. # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255
  294. #
  295. # # Styling for WORK_NOT_WRITABLE.
  296. # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  297. # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_BACKGROUND=4
  298. # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=254
  299. # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=250
  300. # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=255
  301. #
  302. # If a styling parameter isn't explicitly defined for some class, it falls back to the classless
  303. # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls
  304. # back to POWERLEVEL9K_DIR_FOREGROUND.
  305. #
  306. typeset -g POWERLEVEL9K_DIR_CLASSES=()
  307. # Custom prefix.
  308. # typeset -g POWERLEVEL9K_DIR_PREFIX='in '
  309. #####################################[ vcs: git status ]######################################
  310. # Version control system colors.
  311. typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=22
  312. typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=163
  313. typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=20
  314. typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=20
  315. typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=20
  316. # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
  317. typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126'
  318. # Untracked files icon. It's really a question mark, your font isn't broken.
  319. # Change the value of this parameter to show a different icon.
  320. typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
  321. # Formatter for Git status.
  322. #
  323. # Example output: master ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
  324. #
  325. # You can edit the function to customize how Git status looks.
  326. #
  327. # VCS_STATUS_* parameters are set by gitstatus plugin. See reference:
  328. # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.
  329. function my_git_formatter() {
  330. emulate -L zsh
  331. if [[ -n $P9K_CONTENT ]]; then
  332. # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
  333. # gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
  334. typeset -g my_git_format=$P9K_CONTENT
  335. return
  336. fi
  337. # Styling for different parts of Git status.
  338. local meta='%255F'
  339. local clean='%255F'
  340. local modified='%11F'
  341. local untracked='%11F'
  342. local conflicted='%10F'
  343. local res
  344. local where # branch or tag
  345. if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
  346. res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}"
  347. where=${(V)VCS_STATUS_LOCAL_BRANCH}
  348. elif [[ -n $VCS_STATUS_TAG ]]; then
  349. res+="${meta}#"
  350. where=${(V)VCS_STATUS_TAG}
  351. fi
  352. # If local branch name or tag is at most 32 characters long, show it in full.
  353. # Otherwise show the first 12 … the last 12.
  354. # Tip: To always show local branch name in full without truncation, delete the next line.
  355. (( $#where > 32 )) && where[13,-13]="…"
  356. res+="${clean}${where//\%/%%}" # escape %
  357. # Display the current Git commit if there is no branch or tag.
  358. # Tip: To always display the current Git commit, remove `[[ -z $where ]] &&` from the next line.
  359. [[ -z $where ]] && res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
  360. # Show tracking branch name if it differs from local branch.
  361. if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then
  362. res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}" # escape %
  363. fi
  364. # ⇣42 if behind the remote.
  365. (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}${VCS_STATUS_COMMITS_BEHIND}"
  366. # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
  367. (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
  368. (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}${VCS_STATUS_COMMITS_AHEAD}"
  369. # ⇠42 if behind the push remote.
  370. (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}${VCS_STATUS_PUSH_COMMITS_BEHIND}"
  371. (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
  372. # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
  373. (( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}${VCS_STATUS_PUSH_COMMITS_AHEAD}"
  374. # *42 if have stashes.
  375. (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
  376. # 'merge' if the repo is in an unusual state.
  377. [[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}"
  378. # ~42 if have merge conflicts.
  379. (( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}"
  380. # +42 if have staged changes.
  381. (( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}"
  382. # !42 if have unstaged changes.
  383. (( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}"
  384. # ?42 if have untracked files. It's really a question mark, your font isn't broken.
  385. # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
  386. # Remove the next line if you don't want to see untracked files at all.
  387. (( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
  388. # "─" if the number of unstaged files is unknown. This can happen due to
  389. # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
  390. # than the number of files in the Git index, or due to bash.showDirtyState being set to false
  391. # in the repository config. The number of staged and untracked files may also be unknown
  392. # in this case.
  393. (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}"
  394. typeset -g my_git_format=$res
  395. }
  396. functions -M my_git_formatter 2>/dev/null
  397. # Don't count the number of unstaged, untracked and conflicted files in Git repositories with
  398. # more than this many files in the index. Negative value means infinity.
  399. #
  400. # If you are working in Git repositories with tens of millions of files and seeing performance
  401. # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output
  402. # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's
  403. # config: `git config bash.showDirtyState false`.
  404. typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
  405. # Don't show Git status in prompt for repositories whose workdir matches this pattern.
  406. # For example, if set to '~', the Git repository at $HOME/.git will be ignored.
  407. # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.
  408. typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
  409. # Disable the default Git status formatting.
  410. typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
  411. # Install our own Git status formatter.
  412. typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
  413. # Enable counters for staged, unstaged, etc.
  414. typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1
  415. # Custom icon.
  416. typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION=
  417. # Custom prefix.
  418. # typeset -g POWERLEVEL9K_VCS_PREFIX='on '
  419. # Show status of repositories of these types. You can add svn and/or hg if you are
  420. # using them. If you do, your prompt may become slow even when your current directory
  421. # isn't in an svn or hg reposotiry.
  422. typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
  423. ##########################[ status: exit code of the last command ]###########################
  424. # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and
  425. # style them independently from the regular OK and ERROR state.
  426. typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true
  427. # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
  428. # it will signify success by turning green.
  429. typeset -g POWERLEVEL9K_STATUS_OK=true
  430. typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
  431. # typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
  432. # typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
  433. # Status when some part of a pipe command fails but the overall exit status is zero. It may look
  434. # like this: 1|0.
  435. typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
  436. typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
  437. # typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
  438. # typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
  439. # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
  440. # it will signify error by turning red.
  441. typeset -g POWERLEVEL9K_STATUS_ERROR=true
  442. typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'
  443. # typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
  444. # typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
  445. # Status when the last command was terminated by a signal.
  446. typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
  447. # Use terse signal names: "INT" instead of "SIGINT(2)".
  448. typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
  449. typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'
  450. # typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
  451. # typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
  452. # Status when some part of a pipe command fails and the overall exit status is also non-zero.
  453. # It may look like this: 1|0.
  454. typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
  455. typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'
  456. # typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
  457. # typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
  458. ###################[ command_execution_time: duration of the last command ]###################
  459. # Execution time color.
  460. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
  461. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=2
  462. # Show duration of the last command if takes longer than this many seconds.
  463. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
  464. # Show this many fractional digits. Zero means round to seconds.
  465. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
  466. # Duration format: 1d 2h 3m 4s.
  467. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
  468. # Custom icon.
  469. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION=
  470. # Custom prefix.
  471. # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='took '
  472. #######################[ background_jobs: presence of background jobs ]#######################
  473. # Background jobs color.
  474. # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
  475. # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
  476. # Don't show the number of background jobs.
  477. typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
  478. # Custom icon.
  479. # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
  480. #######################[ direnv: direnv status (https://direnv.net/) ]########################
  481. # Direnv color.
  482. # typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
  483. # typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
  484. # Custom icon.
  485. # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  486. ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]###############
  487. # Default asdf color. Only used to display tools for which there is no color override (see below).
  488. # Tip: Override these parameters for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND and
  489. # POWERLEVEL9K_ASDF_${TOOL}_BACKGROUND.
  490. typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0
  491. typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7
  492. # There are four parameters that can be used to hide asdf tools. Each parameter describes
  493. # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at
  494. # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to
  495. # hide a tool, it gets shown.
  496. #
  497. # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and
  498. # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands:
  499. #
  500. # asdf local python 3.8.1
  501. # asdf global python 3.8.1
  502. #
  503. # After running both commands the current python version is 3.8.1 and its source is "local" as
  504. # it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false,
  505. # it'll hide python version in this case because 3.8.1 is the same as the global version.
  506. # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't
  507. # contain "local".
  508. # Hide tool versions that don't come from one of these sources.
  509. #
  510. # Available sources:
  511. #
  512. # - shell `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable"
  513. # - local `asdf current` says "set by /some/not/home/directory/file"
  514. # - global `asdf current` says "set by /home/username/file"
  515. #
  516. # Note: If this parameter is set to (shell local global), it won't hide tools.
  517. # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES.
  518. typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global)
  519. # If set to false, hide tool versions that are the same as global.
  520. #
  521. # Note: The name of this parameter doesn't reflect its meaning at all.
  522. # Note: If this parameter is set to true, it won't hide tools.
  523. # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW.
  524. typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false
  525. # If set to false, hide tool versions that are equal to "system".
  526. #
  527. # Note: If this parameter is set to true, it won't hide tools.
  528. # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM.
  529. typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true
  530. # If set to non-empty value, hide tools unless there is a file matching the specified file pattern
  531. # in the current directory, or its parent diretory, or its grandparent directory, and so on.
  532. #
  533. # Note: If this parameter is set to empty value, it won't hide tools.
  534. # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments.
  535. # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB.
  536. #
  537. # Example: Hide nodejs version when there is no package.json and no *.js files in the current
  538. # directory, in `..`, in `../..` and so on.
  539. #
  540. # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json'
  541. typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=
  542. # Ruby version from asdf.
  543. typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0
  544. typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1
  545. # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐'
  546. # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar'
  547. # Python version from asdf.
  548. typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0
  549. typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4
  550. # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐'
  551. # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar'
  552. # Go version from asdf.
  553. typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0
  554. typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4
  555. # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
  556. # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
  557. # Node.js version from asdf.
  558. typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0
  559. typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2
  560. # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐'
  561. # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar'
  562. # Rust version from asdf.
  563. typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0
  564. typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208
  565. # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  566. # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar'
  567. # .NET Core version from asdf.
  568. typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0
  569. typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5
  570. # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  571. # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar'
  572. # Flutter version from asdf.
  573. typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0
  574. typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4
  575. # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  576. # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar'
  577. # Lua version from asdf.
  578. typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0
  579. typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4
  580. # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  581. # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar'
  582. # Java version from asdf.
  583. typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1
  584. typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7
  585. # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  586. # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar'
  587. # Perl version from asdf.
  588. typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0
  589. typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4
  590. # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  591. # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar'
  592. # Erlang version from asdf.
  593. typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0
  594. typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1
  595. # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
  596. # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
  597. # Elixir version from asdf.
  598. typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0
  599. typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5
  600. # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  601. # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar'
  602. # Postgres version from asdf.
  603. typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0
  604. typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6
  605. # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐'
  606. # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar'
  607. # PHP version from asdf.
  608. typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0
  609. typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5
  610. # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  611. # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar'
  612. # Haskell version from asdf.
  613. typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0
  614. typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3
  615. # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  616. # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar'
  617. # Julia version from asdf.
  618. typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=0
  619. typeset -g POWERLEVEL9K_ASDF_JULIA_BACKGROUND=2
  620. # typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  621. # typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar'
  622. ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
  623. # NordVPN connection indicator color.
  624. # typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
  625. # typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
  626. # Hide NordVPN connection indicator when not connected.
  627. typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
  628. typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
  629. # Custom icon.
  630. # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'
  631. #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
  632. # Ranger shell color.
  633. # typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
  634. # typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
  635. # Custom icon.
  636. # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  637. ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
  638. # Nnn shell color.
  639. # typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
  640. # typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
  641. # Custom icon.
  642. # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
  643. ###########################[ vim_shell: vim shell indicator (:sh) ]###########################
  644. # Vim shell indicator color.
  645. # typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
  646. # typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
  647. # Custom icon.
  648. # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  649. ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]######
  650. # Midnight Commander shell color.
  651. # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
  652. # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
  653. # Custom icon.
  654. # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  655. #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]##
  656. # Nix shell color.
  657. # typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
  658. # typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
  659. # Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line.
  660. # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=
  661. # Custom icon.
  662. # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  663. ##################################[ disk_usage: disk usage ]##################################
  664. # Colors for different levels of disk usage.
  665. # typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3
  666. # typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0
  667. # typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0
  668. # typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3
  669. # typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7
  670. # typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1
  671. # Thresholds for different levels of disk usage (percentage points).
  672. typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
  673. typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
  674. # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent.
  675. typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
  676. # Custom icon.
  677. # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  678. ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]###########
  679. # Foreground color.
  680. typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0
  681. # Text and color for normal (a.k.a. command) vi mode.
  682. typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
  683. typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2
  684. # Text and color for visual vi mode.
  685. typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
  686. typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4
  687. # Text and color for overtype (a.k.a. overwrite and replace) vi mode.
  688. typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
  689. typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3
  690. # Text and color for insert vi mode.
  691. typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=
  692. typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
  693. ######################################[ ram: free RAM ]#######################################
  694. # RAM color.
  695. # typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
  696. # typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
  697. # Custom icon.
  698. # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  699. #####################################[ swap: used swap ]######################################
  700. # Swap color.
  701. # typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
  702. # typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
  703. # Custom icon.
  704. # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  705. ######################################[ load: CPU load ]######################################
  706. # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15.
  707. typeset -g POWERLEVEL9K_LOAD_WHICH=5
  708. # Load color when load is under 50%.
  709. # typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
  710. # typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
  711. # Load color when load is between 50% and 70%.
  712. # typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
  713. # typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
  714. # Load color when load is over 70%.
  715. # typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
  716. # typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
  717. # Custom icon.
  718. # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
  719. ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################
  720. # Todo color.
  721. # typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
  722. # typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
  723. # Hide todo when the total number of tasks is zero.
  724. typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
  725. # Hide todo when the number of tasks after filtering is zero.
  726. typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false
  727. # Todo format. The following parameters are available within the expansion.
  728. #
  729. # - P9K_TODO_TOTAL_TASK_COUNT The total number of tasks.
  730. # - P9K_TODO_FILTERED_TASK_COUNT The number of tasks after filtering.
  731. #
  732. # These variables correspond to the last line of the output of `todo.sh -p ls`:
  733. #
  734. # TODO: 24 of 42 tasks shown
  735. #
  736. # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT.
  737. #
  738. # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT'
  739. # Custom icon.
  740. # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐'
  741. ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############
  742. # Timewarrior color.
  743. # typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
  744. # typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
  745. # If the tracked task is longer than 24 characters, truncate and append "…".
  746. # Tip: To always display tasks without truncation, delete the following parameter.
  747. # Tip: To hide task names and display just the icon when time tracking is enabled, set the
  748. # value of the following parameter to "".
  749. typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
  750. # Custom icon.
  751. # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  752. ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############
  753. # Taskwarrior color.
  754. # typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
  755. # typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
  756. # Taskwarrior segment format. The following parameters are available within the expansion.
  757. #
  758. # - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`.
  759. # - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`.
  760. #
  761. # Zero values are represented as empty parameters.
  762. #
  763. # The default format:
  764. #
  765. # '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT'
  766. #
  767. # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT'
  768. # Custom icon.
  769. # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  770. ##################################[ context: user@hostname ]##################################
  771. # Context color when running with privileges.
  772. typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
  773. typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0
  774. # Context color in SSH without privileges.
  775. typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3
  776. typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0
  777. # Default context color (no privileges, no SSH).
  778. typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3
  779. typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0
  780. # Context format when running with privileges: user@hostname.
  781. typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
  782. # Context format when in SSH without privileges: user@hostname.
  783. typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'
  784. # Default context format (no privileges, no SSH): user@hostname.
  785. typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
  786. # Don't show context unless running with privileges or in SSH.
  787. # Tip: Remove the next line to always show context.
  788. typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
  789. # Custom icon.
  790. # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  791. # Custom prefix.
  792. # typeset -g POWERLEVEL9K_CONTEXT_PREFIX='with '
  793. ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
  794. # Python virtual environment color.
  795. # typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
  796. # typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
  797. # Don't show Python version next to the virtual environment name.
  798. typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
  799. # Don't show virtualenv if pyenv is already shown.
  800. typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false
  801. # Separate environment name from Python version only with a space.
  802. typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
  803. # Custom icon.
  804. typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='🐍'
  805. #####################[ anaconda: conda environment (https://conda.io/) ]######################
  806. # Anaconda environment color.
  807. # typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
  808. # typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
  809. # Anaconda segment format. The following parameters are available within the expansion.
  810. #
  811. # - CONDA_PREFIX Absolute path to the active Anaconda/Miniconda environment.
  812. # - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment.
  813. # - CONDA_PROMPT_MODIFIER Configurable prompt modifier (see below).
  814. # - P9K_ANACONDA_PYTHON_VERSION Current python version (python --version).
  815. #
  816. # CONDA_PROMPT_MODIFIER can be configured with the following command:
  817. #
  818. # conda config --set env_prompt '({default_env}) '
  819. #
  820. # The last argument is a Python format string that can use the following variables:
  821. #
  822. # - prefix The same as CONDA_PREFIX.
  823. # - default_env The same as CONDA_DEFAULT_ENV.
  824. # - name The last segment of CONDA_PREFIX.
  825. # - stacked_env Comma-separated list of names in the environment stack. The first element is
  826. # always the same as default_env.
  827. #
  828. # Note: '({default_env}) ' is the default value of env_prompt.
  829. #
  830. # The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER
  831. # without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former
  832. # is empty.
  833. typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}'
  834. # Custom icon.
  835. typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='🐍'
  836. ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
  837. # Pyenv color.
  838. # typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
  839. # typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
  840. # Hide python version if it doesn't come from one of these sources.
  841. typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
  842. # If set to false, hide python version if it's the same as global:
  843. # $(pyenv version-name) == $(pyenv global).
  844. typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
  845. # If set to false, hide python version if it's equal to "system".
  846. typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
  847. # Pyenv segment format. The following parameters are available within the expansion.
  848. #
  849. # - P9K_CONTENT Current pyenv environment (pyenv version-name).
  850. # - P9K_PYENV_PYTHON_VERSION Current python version (python --version).
  851. #
  852. # The default format has the following logic:
  853. #
  854. # 1. Display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION" if $P9K_PYENV_PYTHON_VERSION is not
  855. # empty and unequal to $P9K_CONTENT.
  856. # 2. Otherwise display just "$P9K_CONTENT".
  857. typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_PYENV_PYTHON_VERSION:#$P9K_CONTENT}:+ $P9K_PYENV_PYTHON_VERSION}'
  858. # Custom icon.
  859. typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='🐍'
  860. ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################
  861. # Goenv color.
  862. # typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
  863. # typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
  864. # Hide go version if it doesn't come from one of these sources.
  865. typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)
  866. # If set to false, hide go version if it's the same as global:
  867. # $(goenv version-name) == $(goenv global).
  868. typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false
  869. # If set to false, hide go version if it's equal to "system".
  870. typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true
  871. # Custom icon.
  872. # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  873. ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
  874. # Nodenv color.
  875. # typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
  876. # typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
  877. # Hide node version if it doesn't come from one of these sources.
  878. typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
  879. # If set to false, hide node version if it's the same as global:
  880. # $(nodenv version-name) == $(nodenv global).
  881. typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
  882. # If set to false, hide node version if it's equal to "system".
  883. typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true
  884. # Custom icon.
  885. # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  886. ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
  887. # Nvm color.
  888. # typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
  889. # typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
  890. # Custom icon.
  891. # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  892. ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
  893. # Nodeenv color.
  894. # typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
  895. # typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
  896. # Don't show Node version next to the environment name.
  897. typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
  898. # Separate environment name from Node version only with a space.
  899. typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER=
  900. # Custom icon.
  901. # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  902. ##############################[ node_version: node.js version ]###############################
  903. # Node version color.
  904. # typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
  905. # typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
  906. # Show node version only when in a directory tree containing package.json.
  907. typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
  908. # Custom icon.
  909. # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  910. #######################[ go_version: go version (https://golang.org) ]########################
  911. # Go version color.
  912. # typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
  913. # typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
  914. # Show go version only when in a go project subdirectory.
  915. typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
  916. # Custom icon.
  917. # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  918. #################[ rust_version: rustc version (https://www.rust-lang.org) ]##################
  919. # Rust version color.
  920. # typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
  921. # typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
  922. # Show rust version only when in a rust project subdirectory.
  923. typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
  924. # Custom icon.
  925. # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  926. ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################
  927. # .NET version color.
  928. # typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
  929. # typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
  930. # Show .NET version only when in a .NET project subdirectory.
  931. typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
  932. # Custom icon.
  933. # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  934. #####################[ php_version: php version (https://www.php.net/) ]######################
  935. # PHP version color.
  936. typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0
  937. typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5
  938. # Show PHP version only when in a PHP project subdirectory.
  939. typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true
  940. # Custom icon.
  941. # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  942. ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]###########
  943. # Laravel version color.
  944. typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1
  945. typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7
  946. # Custom icon.
  947. # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  948. #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
  949. # Rbenv color.
  950. # typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
  951. # typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
  952. # Hide ruby version if it doesn't come from one of these sources.
  953. typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)
  954. # If set to false, hide ruby version if it's the same as global:
  955. # $(rbenv version-name) == $(rbenv global).
  956. typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
  957. # If set to false, hide ruby version if it's equal to "system".
  958. typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true
  959. # Custom icon.
  960. # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  961. ####################[ java_version: java version (https://www.java.com/) ]####################
  962. # Java version color.
  963. typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1
  964. typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7
  965. # Show java version only when in a java project subdirectory.
  966. typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true
  967. # Show brief version.
  968. typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false
  969. # Custom icon.
  970. # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  971. ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]####
  972. # Package color.
  973. # typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
  974. # typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
  975. # Package format. The following parameters are available within the expansion.
  976. #
  977. # - P9K_PACKAGE_NAME The value of `name` field in package.json.
  978. # - P9K_PACKAGE_VERSION The value of `version` field in package.json.
  979. #
  980. # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}'
  981. # Custom icon.
  982. # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  983. #######################[ rvm: ruby version from rvm (https://rvm.io) ]########################
  984. # Rvm color.
  985. # typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
  986. # typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
  987. # Don't show @gemset at the end.
  988. typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false
  989. # Don't show ruby- at the front.
  990. typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false
  991. # Custom icon.
  992. # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  993. ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
  994. # Fvm color.
  995. # typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
  996. # typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
  997. # Custom icon.
  998. # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  999. ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]###########
  1000. # Lua color.
  1001. # typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
  1002. # typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
  1003. # Hide lua version if it doesn't come from one of these sources.
  1004. typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)
  1005. # If set to false, hide lua version if it's the same as global:
  1006. # $(luaenv version-name) == $(luaenv global).
  1007. typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false
  1008. # If set to false, hide lua version if it's equal to "system".
  1009. typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true
  1010. # Custom icon.
  1011. # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1012. ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################
  1013. # Java color.
  1014. # typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
  1015. # typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
  1016. # Hide java version if it doesn't come from one of these sources.
  1017. typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
  1018. # If set to false, hide java version if it's the same as global:
  1019. # $(jenv version-name) == $(jenv global).
  1020. typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
  1021. # If set to false, hide java version if it's equal to "system".
  1022. typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true
  1023. # Custom icon.
  1024. # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1025. ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############
  1026. # Perl color.
  1027. # typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
  1028. # typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
  1029. # Hide perl version if it doesn't come from one of these sources.
  1030. typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)
  1031. # If set to false, hide perl version if it's the same as global:
  1032. # $(plenv version-name) == $(plenv global).
  1033. typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false
  1034. # If set to false, hide perl version if it's equal to "system".
  1035. typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true
  1036. # Custom icon.
  1037. # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1038. ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############
  1039. # PHP color.
  1040. # typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
  1041. # typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
  1042. # Hide php version if it doesn't come from one of these sources.
  1043. typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)
  1044. # If set to false, hide php version if it's the same as global:
  1045. # $(phpenv version-name) == $(phpenv global).
  1046. typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false
  1047. # If set to false, hide PHP version if it's equal to "system".
  1048. typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true
  1049. # Custom icon.
  1050. # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1051. ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]###########
  1052. # Haskell color.
  1053. # typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
  1054. # typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
  1055. # Hide haskell version if it doesn't come from one of these sources.
  1056. #
  1057. # shell: version is set by STACK_YAML
  1058. # local: version is set by stack.yaml up the directory tree
  1059. # global: version is set by the implicit global project (~/.stack/global-project/stack.yaml)
  1060. typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local)
  1061. # If set to false, hide haskell version if it's the same as in the implicit global project.
  1062. typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true
  1063. # Custom icon.
  1064. # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1065. ################[ terraform: terraform workspace (https://www.terraform.io) ]#################
  1066. # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element
  1067. # in each pair defines a pattern against which the current terraform workspace gets matched.
  1068. # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1069. # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters,
  1070. # you'll see this value in your prompt. The second element of each pair in
  1071. # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The
  1072. # first match wins.
  1073. #
  1074. # For example, given these settings:
  1075. #
  1076. # typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
  1077. # '*prod*' PROD
  1078. # '*test*' TEST
  1079. # '*' DEFAULT)
  1080. #
  1081. # If your current terraform workspace is "project_test", its class is TEST because "project_test"
  1082. # doesn't match the pattern '*prod*' but does match '*test*'.
  1083. #
  1084. # You can define different colors, icons and content expansions for different classes:
  1085. #
  1086. # typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=2
  1087. # typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1088. # typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1089. typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
  1090. # '*prod*' PROD # These values are examples that are unlikely
  1091. # '*test*' TEST # to match your needs. Customize them as needed.
  1092. '*' DEFAULT)
  1093. typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4
  1094. typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_BACKGROUND=0
  1095. # typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1096. #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
  1097. # Show kubecontext only when the the command you are typing invokes one of these tools.
  1098. # Tip: Remove the next line to always show kubecontext.
  1099. typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito'
  1100. # Kubernetes context classes for the purpose of using different colors, icons and expansions with
  1101. # different contexts.
  1102. #
  1103. # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element
  1104. # in each pair defines a pattern against which the current kubernetes context gets matched.
  1105. # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1106. # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters,
  1107. # you'll see this value in your prompt. The second element of each pair in
  1108. # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The
  1109. # first match wins.
  1110. #
  1111. # For example, given these settings:
  1112. #
  1113. # typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
  1114. # '*prod*' PROD
  1115. # '*test*' TEST
  1116. # '*' DEFAULT)
  1117. #
  1118. # If your current kubernetes context is "deathray-testing/default", its class is TEST
  1119. # because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'.
  1120. #
  1121. # You can define different colors, icons and content expansions for different classes:
  1122. #
  1123. # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=0
  1124. # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_BACKGROUND=2
  1125. # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1126. # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1127. typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
  1128. # '*prod*' PROD # These values are examples that are unlikely
  1129. # '*test*' TEST # to match your needs. Customize them as needed.
  1130. '*' DEFAULT)
  1131. typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
  1132. typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
  1133. # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1134. # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext
  1135. # segment. Parameter expansions are very flexible and fast, too. See reference:
  1136. # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
  1137. #
  1138. # Within the expansion the following parameters are always available:
  1139. #
  1140. # - P9K_CONTENT The content that would've been displayed if there was no content
  1141. # expansion defined.
  1142. # - P9K_KUBECONTEXT_NAME The current context's name. Corresponds to column NAME in the
  1143. # output of `kubectl config get-contexts`.
  1144. # - P9K_KUBECONTEXT_CLUSTER The current context's cluster. Corresponds to column CLUSTER in the
  1145. # output of `kubectl config get-contexts`.
  1146. # - P9K_KUBECONTEXT_NAMESPACE The current context's namespace. Corresponds to column NAMESPACE
  1147. # in the output of `kubectl config get-contexts`. If there is no
  1148. # namespace, the parameter is set to "default".
  1149. # - P9K_KUBECONTEXT_USER The current context's user. Corresponds to column AUTHINFO in the
  1150. # output of `kubectl config get-contexts`.
  1151. #
  1152. # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS),
  1153. # the following extra parameters are available:
  1154. #
  1155. # - P9K_KUBECONTEXT_CLOUD_NAME Either "gke" or "eks".
  1156. # - P9K_KUBECONTEXT_CLOUD_ACCOUNT Account/project ID.
  1157. # - P9K_KUBECONTEXT_CLOUD_ZONE Availability zone.
  1158. # - P9K_KUBECONTEXT_CLOUD_CLUSTER Cluster.
  1159. #
  1160. # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example,
  1161. # if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01":
  1162. #
  1163. # - P9K_KUBECONTEXT_CLOUD_NAME=gke
  1164. # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account
  1165. # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a
  1166. # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
  1167. #
  1168. # If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01":
  1169. #
  1170. # - P9K_KUBECONTEXT_CLOUD_NAME=eks
  1171. # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012
  1172. # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1
  1173. # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
  1174. typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION=
  1175. # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME.
  1176. POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}'
  1177. # Append the current context's namespace if it's not "default".
  1178. POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'
  1179. # Custom prefix.
  1180. # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at '
  1181. #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
  1182. # Show aws only when the the command you are typing invokes one of these tools.
  1183. # Tip: Remove the next line to always show aws.
  1184. typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi'
  1185. # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element
  1186. # in each pair defines a pattern against which the current AWS profile gets matched.
  1187. # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1188. # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters,
  1189. # you'll see this value in your prompt. The second element of each pair in
  1190. # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The
  1191. # first match wins.
  1192. #
  1193. # For example, given these settings:
  1194. #
  1195. # typeset -g POWERLEVEL9K_AWS_CLASSES=(
  1196. # '*prod*' PROD
  1197. # '*test*' TEST
  1198. # '*' DEFAULT)
  1199. #
  1200. # If your current AWS profile is "company_test", its class is TEST
  1201. # because "company_test" doesn't match the pattern '*prod*' but does match '*test*'.
  1202. #
  1203. # You can define different colors, icons and content expansions for different classes:
  1204. #
  1205. # typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28
  1206. # typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1207. # typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1208. typeset -g POWERLEVEL9K_AWS_CLASSES=(
  1209. # '*prod*' PROD # These values are examples that are unlikely
  1210. # '*test*' TEST # to match your needs. Customize them as needed.
  1211. '*' DEFAULT)
  1212. # typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7
  1213. # typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1
  1214. # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1215. #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#
  1216. # AWS Elastic Beanstalk environment color.
  1217. # typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
  1218. # typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
  1219. # Custom icon.
  1220. # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1221. ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
  1222. # Show azure only when the the command you are typing invokes one of these tools.
  1223. # Tip: Remove the next line to always show azure.
  1224. typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi'
  1225. # Azure account name color.
  1226. # typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7
  1227. # typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4
  1228. # Custom icon.
  1229. # typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1230. ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
  1231. # Show gcloud only when the the command you are typing invokes one of these tools.
  1232. # Tip: Remove the next line to always show gcloud.
  1233. typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs'
  1234. # Google cloud color.
  1235. # typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
  1236. # typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
  1237. # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or
  1238. # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative
  1239. # enough. You can use the following parameters in the expansions. Each of them corresponds to the
  1240. # output of `gcloud` tool.
  1241. #
  1242. # Parameter | Source
  1243. # -------------------------|--------------------------------------------------------------------
  1244. # P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)'
  1245. # P9K_GCLOUD_ACCOUNT | gcloud config get-value account
  1246. # P9K_GCLOUD_PROJECT_ID | gcloud config get-value project
  1247. # P9K_GCLOUD_PROJECT_NAME | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)'
  1248. #
  1249. # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced with '%%'.
  1250. #
  1251. # Obtaining project name requires sending a request to Google servers. This can take a long time
  1252. # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud
  1253. # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets
  1254. # set and gcloud prompt segment transitions to state COMPLETE.
  1255. #
  1256. # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL
  1257. # and COMPLETE. You can also hide gcloud in state PARTIAL by setting
  1258. # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and
  1259. # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty.
  1260. typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}'
  1261. typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}'
  1262. # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name
  1263. # this often. Negative value disables periodic polling. In this mode project name is retrieved
  1264. # only when the current configuration, account or project id changes.
  1265. typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60
  1266. # Custom icon.
  1267. # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1268. #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
  1269. # Show google_app_cred only when the the command you are typing invokes one of these tools.
  1270. # Tip: Remove the next line to always show google_app_cred.
  1271. typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi'
  1272. # Google application credentials classes for the purpose of using different colors, icons and
  1273. # expansions with different credentials.
  1274. #
  1275. # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first
  1276. # element in each pair defines a pattern against which the current kubernetes context gets
  1277. # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion
  1278. # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION
  1279. # parameters, you'll see this value in your prompt. The second element of each pair in
  1280. # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order.
  1281. # The first match wins.
  1282. #
  1283. # For example, given these settings:
  1284. #
  1285. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
  1286. # '*:*prod*:*' PROD
  1287. # '*:*test*:*' TEST
  1288. # '*' DEFAULT)
  1289. #
  1290. # If your current Google application credentials is "service_account deathray-testing x@y.com",
  1291. # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'.
  1292. #
  1293. # You can define different colors, icons and content expansions for different classes:
  1294. #
  1295. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28
  1296. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1297. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID'
  1298. typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
  1299. # '*:*prod*:*' PROD # These values are examples that are unlikely
  1300. # '*:*test*:*' TEST # to match your needs. Customize them as needed.
  1301. '*' DEFAULT)
  1302. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7
  1303. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4
  1304. # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1305. # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by
  1306. # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference:
  1307. # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
  1308. #
  1309. # You can use the following parameters in the expansion. Each of them corresponds to one of the
  1310. # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS.
  1311. #
  1312. # Parameter | JSON key file field
  1313. # ---------------------------------+---------------
  1314. # P9K_GOOGLE_APP_CRED_TYPE | type
  1315. # P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id
  1316. # P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email
  1317. #
  1318. # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced by '%%'.
  1319. typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
  1320. ###############################[ public_ip: public IP address ]###############################
  1321. # Public IP color.
  1322. # typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
  1323. # typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
  1324. # Custom icon.
  1325. # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1326. ########################[ vpn_ip: virtual private network indicator ]#########################
  1327. # VPN IP color.
  1328. # typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
  1329. # typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
  1330. # When on VPN, show just an icon without the IP address.
  1331. # Tip: To display the private IP address when on VPN, remove the next line.
  1332. typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
  1333. # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
  1334. # to see the name of the interface.
  1335. typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(wg|(.*tun))[0-9]*'
  1336. # If set to true, show one segment per matching network interface. If set to false, show only
  1337. # one segment corresponding to the first matching network interface.
  1338. # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
  1339. typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false
  1340. # Custom icon.
  1341. # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1342. ###########[ ip: ip address and bandwidth usage for a specified network interface ]###########
  1343. # IP color.
  1344. typeset -g POWERLEVEL9K_IP_BACKGROUND=4
  1345. typeset -g POWERLEVEL9K_IP_FOREGROUND=0
  1346. # The following parameters are accessible within the expansion:
  1347. #
  1348. # Parameter | Meaning
  1349. # ----------------------+---------------
  1350. # P9K_IP_IP | IP address
  1351. # P9K_IP_INTERFACE | network interface
  1352. # P9K_IP_RX_BYTES | total number of bytes received
  1353. # P9K_IP_TX_BYTES | total number of bytes sent
  1354. # P9K_IP_RX_RATE | receive rate (since last prompt)
  1355. # P9K_IP_TX_RATE | send rate (since last prompt)
  1356. typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP'
  1357. # Show information for the first network interface whose name matches this regular expression.
  1358. # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
  1359. typeset -g POWERLEVEL9K_IP_INTERFACE='e.*'
  1360. # Custom icon.
  1361. # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1362. #########################[ proxy: system-wide http/https/ftp proxy ]##########################
  1363. # Proxy color.
  1364. # typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
  1365. # typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
  1366. # Custom icon.
  1367. # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1368. ################################[ battery: internal battery ]#################################
  1369. # Show battery in red when it's below this level and not connected to power supply.
  1370. typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
  1371. typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
  1372. # Show battery in green when it's charging or fully charged.
  1373. typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2
  1374. # Show battery in yellow when it's discharging.
  1375. typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
  1376. # Battery pictograms going from low to high level of charge.
  1377. typeset -g POWERLEVEL9K_BATTERY_STAGES=('%K{232}▁' '%K{232}▂' '%K{232}▃' '%K{232}▄' '%K{232}▅' '%K{232}▆' '%K{232}▇' '%K{232}█')
  1378. # Don't show the remaining time to charge/discharge.
  1379. typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
  1380. # typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
  1381. #####################################[ wifi: wifi speed ]#####################################
  1382. # WiFi color.
  1383. # typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
  1384. # typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
  1385. # Custom icon.
  1386. # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1387. # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS).
  1388. #
  1389. # # Wifi colors and icons for different signal strength levels (low to high).
  1390. # typeset -g my_wifi_fg=(0 0 0 0 0) # <-- change these values
  1391. # typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi') # <-- change these values
  1392. #
  1393. # typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps'
  1394. # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}'
  1395. #
  1396. # The following parameters are accessible within the expansions:
  1397. #
  1398. # Parameter | Meaning
  1399. # ----------------------+---------------
  1400. # P9K_WIFI_SSID | service set identifier, a.k.a. network name
  1401. # P9K_WIFI_LINK_AUTH | authentication protocol such as "wpa2-psk" or "none"
  1402. # P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second
  1403. # P9K_WIFI_RSSI | signal strength in dBm, from -120 to 0
  1404. # P9K_WIFI_NOISE | noise in dBm, from -120 to 0
  1405. # P9K_WIFI_BARS | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE)
  1406. #
  1407. # All parameters except P9K_WIFI_BARS are extracted from the output of the following command:
  1408. #
  1409. # /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
  1410. ####################################[ time: current time ]####################################
  1411. # Current time color.
  1412. # typeset -g POWERLEVEL9K_TIME_FOREGROUND=0
  1413. # typeset -g POWERLEVEL9K_TIME_BACKGROUND=7
  1414. # Format for the current time: 09:51:02. See `man 3 strftime`.
  1415. typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
  1416. # If set to true, time will update when you hit enter. This way prompts for the past
  1417. # commands will contain the start times of their commands as opposed to the default
  1418. # behavior where they contain the end times of their preceding commands.
  1419. typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
  1420. # Custom icon.
  1421. typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION=
  1422. # Custom prefix.
  1423. # typeset -g POWERLEVEL9K_TIME_PREFIX='at '
  1424. # Example of a user-defined prompt segment. Function prompt_example will be called on every
  1425. # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
  1426. # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and yellow text on red background
  1427. # greeting the user.
  1428. #
  1429. # Type `p10k help segment` for documentation and a more sophisticated example.
  1430. function prompt_example() {
  1431. p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'
  1432. }
  1433. # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
  1434. # is to generate the prompt segment for display in instant prompt. See
  1435. # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
  1436. #
  1437. # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function
  1438. # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k
  1439. # will replay these calls without actually calling instant_prompt_*. It is imperative that
  1440. # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this
  1441. # rule is not observed, the content of instant prompt will be incorrect.
  1442. #
  1443. # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If
  1444. # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt.
  1445. function instant_prompt_example() {
  1446. # Since prompt_example always makes the same `p10k segment` calls, we can call it from
  1447. # instant_prompt_example. This will give us the same `example` prompt segment in the instant
  1448. # and regular prompts.
  1449. prompt_example
  1450. }
  1451. # User-defined prompt segments can be customized the same way as built-in segments.
  1452. # typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
  1453. # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1454. # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
  1455. # when accepting a command line. Supported values:
  1456. #
  1457. # - off: Don't change prompt when accepting a command line.
  1458. # - always: Trim down prompt when accepting a command line.
  1459. # - same-dir: Trim down prompt when accepting a command line unless this is the first command
  1460. # typed after changing current working directory.
  1461. typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
  1462. # Instant prompt mode.
  1463. #
  1464. # - off: Disable instant prompt. Choose this if you've tried instant prompt and found
  1465. # it incompatible with your zsh configuration files.
  1466. # - quiet: Enable instant prompt and don't print warnings when detecting console output
  1467. # during zsh initialization. Choose this if you've read and understood
  1468. # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
  1469. # - verbose: Enable instant prompt and print a warning when detecting console output during
  1470. # zsh initialization. Choose this if you've never tried instant prompt, haven't
  1471. # seen the warning, or if you are unsure what this all means.
  1472. typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
  1473. # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
  1474. # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
  1475. # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
  1476. # really need it.
  1477. typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
  1478. # If p10k is already loaded, reload configuration.
  1479. # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
  1480. (( ! $+functions[p10k] )) || p10k reload
  1481. }
  1482. # Tell `p10k configure` which file it should overwrite.
  1483. typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
  1484. (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
  1485. 'builtin' 'unset' 'p10k_config_opts'