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