my dotfiles - using https://tangled.org/@nuv.sh/dotfiles_helper
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add .p10k.zsh; add zoxide install to .zshrc

nnuuvv 6805e31f 660d65b7

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