clone of my dotfiles.ssp.sh
1
fork

Configure Feed

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

stow: zsh

sspaeti 234e421f c1b93360

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