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