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