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