@jaspermayone.com's dotfiles

move to starship

+300 -222
+110 -6
flake.lock
··· 176 176 "systems": "systems_4" 177 177 }, 178 178 "locked": { 179 - "lastModified": 1731533236, 180 - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 179 + "lastModified": 1710146030, 180 + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", 181 181 "owner": "numtide", 182 182 "repo": "flake-utils", 183 - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 183 + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", 184 184 "type": "github" 185 185 }, 186 186 "original": { ··· 207 207 "type": "github" 208 208 } 209 209 }, 210 + "flake-utils_4": { 211 + "inputs": { 212 + "systems": "systems_6" 213 + }, 214 + "locked": { 215 + "lastModified": 1731533236, 216 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 217 + "owner": "numtide", 218 + "repo": "flake-utils", 219 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 220 + "type": "github" 221 + }, 222 + "original": { 223 + "owner": "numtide", 224 + "repo": "flake-utils", 225 + "type": "github" 226 + } 227 + }, 210 228 "gomod2nix": { 211 229 "inputs": { 212 - "flake-utils": "flake-utils_2", 230 + "flake-utils": "flake-utils_3", 213 231 "nixpkgs": [ 214 232 "tangled", 215 233 "nixpkgs" ··· 452 470 }, 453 471 "nixpkgs_3": { 454 472 "locked": { 473 + "lastModified": 1720031269, 474 + "narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=", 475 + "owner": "NixOS", 476 + "repo": "nixpkgs", 477 + "rev": "9f4128e00b0ae8ec65918efeba59db998750ead6", 478 + "type": "github" 479 + }, 480 + "original": { 481 + "owner": "NixOS", 482 + "ref": "nixos-unstable", 483 + "repo": "nixpkgs", 484 + "type": "github" 485 + } 486 + }, 487 + "nixpkgs_4": { 488 + "locked": { 489 + "lastModified": 1718428119, 490 + "narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=", 491 + "owner": "NixOS", 492 + "repo": "nixpkgs", 493 + "rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5", 494 + "type": "github" 495 + }, 496 + "original": { 497 + "owner": "NixOS", 498 + "ref": "nixpkgs-unstable", 499 + "repo": "nixpkgs", 500 + "type": "github" 501 + } 502 + }, 503 + "nixpkgs_5": { 504 + "locked": { 455 505 "lastModified": 1764635402, 456 506 "narHash": "sha256-6rYcajRLe2C5ZYnV1HYskJl+QAkhvseWTzbdQiTN9OI=", 457 507 "owner": "nixos", ··· 498 548 "nixpkgs": "nixpkgs_2", 499 549 "nixpkgs-unstable": "nixpkgs-unstable", 500 550 "nur": "nur", 551 + "rust-fp": "rust-fp", 501 552 "tangled": "tangled", 502 553 "tgirlpkgs": "tgirlpkgs", 503 554 "zmx": "zmx" 504 555 } 505 556 }, 557 + "rust-fp": { 558 + "inputs": { 559 + "flake-utils": "flake-utils_2", 560 + "nixpkgs": "nixpkgs_3", 561 + "rust-overlay": "rust-overlay" 562 + }, 563 + "locked": { 564 + "lastModified": 1754799087, 565 + "narHash": "sha256-Mw9dcKChPo5meqqRHUKSO6gSbN4yf+EDzXy5Fxf2srg=", 566 + "owner": "ChocolateLoverRaj", 567 + "repo": "rust-fp", 568 + "rev": "2d0b547e8800eea66d06fb52ed946f52cab30e37", 569 + "type": "github" 570 + }, 571 + "original": { 572 + "owner": "ChocolateLoverRaj", 573 + "repo": "rust-fp", 574 + "type": "github" 575 + } 576 + }, 577 + "rust-overlay": { 578 + "inputs": { 579 + "nixpkgs": "nixpkgs_4" 580 + }, 581 + "locked": { 582 + "lastModified": 1720145907, 583 + "narHash": "sha256-mNO3vfM43+w4Bp+zMC8Dkf4ktLpYYRpk9tAOp4iumio=", 584 + "owner": "oxalica", 585 + "repo": "rust-overlay", 586 + "rev": "5ad2d5884b9b16319c9c5ca4e80a5b8606b083ae", 587 + "type": "github" 588 + }, 589 + "original": { 590 + "owner": "oxalica", 591 + "repo": "rust-overlay", 592 + "type": "github" 593 + } 594 + }, 506 595 "sqlite-lib-src": { 507 596 "flake": false, 508 597 "locked": { ··· 591 680 "type": "github" 592 681 } 593 682 }, 683 + "systems_6": { 684 + "locked": { 685 + "lastModified": 1681028828, 686 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 687 + "owner": "nix-systems", 688 + "repo": "default", 689 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 690 + "type": "github" 691 + }, 692 + "original": { 693 + "owner": "nix-systems", 694 + "repo": "default", 695 + "type": "github" 696 + } 697 + }, 594 698 "tangled": { 595 699 "inputs": { 596 700 "actor-typeahead-src": "actor-typeahead-src", ··· 661 765 }, 662 766 "zig2nix": { 663 767 "inputs": { 664 - "flake-utils": "flake-utils_3", 665 - "nixpkgs": "nixpkgs_3" 768 + "flake-utils": "flake-utils_4", 769 + "nixpkgs": "nixpkgs_5" 666 770 }, 667 771 "locked": { 668 772 "lastModified": 1764678235,
+190 -17
modules/shell.nix
··· 99 99 100 100 in 101 101 { 102 + # Starship prompt 103 + programs.starship = { 104 + enable = true; 105 + enableZshIntegration = true; 106 + settings = { 107 + format = "$username$hostname$localip$directory$git_branch$git_commit$git_state$git_metrics$git_status$nix_shell$mise$bun$nodejs$python$ruby$rust$java$swift$direnv$shell$cmd_duration$line_break$character"; 108 + 109 + # Hostname - always visible 110 + hostname = { 111 + ssh_only = false; 112 + format = "[$hostname]($style) "; 113 + style = "bold cyan"; 114 + }; 115 + 116 + # Local IP - show on SSH 117 + localip = { 118 + ssh_only = true; 119 + format = "[@$localipv4]($style) "; 120 + style = "bold yellow"; 121 + disabled = false; 122 + }; 123 + 124 + # Directory 125 + directory = { 126 + style = "bold blue"; 127 + truncation_length = 3; 128 + truncation_symbol = "…/"; 129 + truncate_to_repo = true; 130 + }; 131 + 132 + # Git branch 133 + git_branch = { 134 + format = "[$symbol$branch(:$remote_branch)]($style) "; 135 + symbol = ""; 136 + style = "purple"; 137 + }; 138 + 139 + # Git commit - show hash when detached 140 + git_commit = { 141 + format = "[$hash$tag]($style) "; 142 + style = "green"; 143 + only_detached = true; 144 + tag_disabled = false; 145 + tag_symbol = " 🏷 "; 146 + }; 147 + 148 + # Git state - show rebase/merge/etc 149 + git_state = { 150 + format = "[$state( $progress_current/$progress_total)]($style) "; 151 + style = "bold yellow"; 152 + }; 153 + 154 + # Git metrics - show +/- lines 155 + git_metrics = { 156 + format = "([+$added]($added_style))([-$deleted]($deleted_style) )"; 157 + added_style = "bold green"; 158 + deleted_style = "bold red"; 159 + disabled = false; 160 + }; 161 + 162 + # Git status - detailed symbols 163 + git_status = { 164 + format = "([$all_status$ahead_behind]($style) )"; 165 + style = "red"; 166 + conflicted = "="; 167 + ahead = "⇡$count"; 168 + behind = "⇣$count"; 169 + diverged = "⇕⇡$ahead_count⇣$behind_count"; 170 + up_to_date = ""; 171 + untracked = "?$count"; 172 + stashed = "📦"; 173 + modified = "!$count"; 174 + staged = "+$count"; 175 + renamed = "»$count"; 176 + deleted = "✘$count"; 177 + }; 178 + 179 + # Bun 180 + bun = { 181 + format = "[$symbol($version)]($style) "; 182 + symbol = "🥟 "; 183 + style = "bold red"; 184 + }; 185 + 186 + # Direnv 187 + direnv = { 188 + format = "[$symbol$loaded/$allowed]($style) "; 189 + symbol = "direnv "; 190 + style = "bold orange"; 191 + disabled = false; 192 + }; 193 + 194 + # Command duration 195 + cmd_duration = { 196 + min_time = 2000; 197 + format = "[$duration]($style) "; 198 + style = "yellow"; 199 + show_notifications = false; 200 + }; 201 + 202 + # Character 203 + character = { 204 + success_symbol = "[❯](bold magenta)"; 205 + error_symbol = "[❯](bold red)"; 206 + }; 207 + 208 + # Username - show when root or SSH 209 + username = { 210 + style_root = "bold red"; 211 + style_user = "bold yellow"; 212 + format = "[$user]($style)@"; 213 + show_always = false; 214 + disabled = false; 215 + }; 216 + 217 + # Nix shell 218 + nix_shell = { 219 + format = "[$symbol$state( \\($name\\))]($style) "; 220 + symbol = "❄️ "; 221 + style = "bold blue"; 222 + impure_msg = "impure"; 223 + pure_msg = "pure"; 224 + disabled = false; 225 + heuristic = true; 226 + }; 227 + 228 + # Mise (version manager) 229 + mise = { 230 + format = "[$symbol$health]($style) "; 231 + symbol = "mise "; 232 + style = "bold purple"; 233 + disabled = false; 234 + }; 235 + 236 + # Node.js 237 + nodejs = { 238 + format = "[$symbol($version)]($style) "; 239 + symbol = " "; 240 + style = "bold green"; 241 + not_capable_style = "bold red"; 242 + }; 243 + 244 + # Python 245 + python = { 246 + format = "[$symbol$pyenv_prefix($version )(\\($virtualenv\\))]($style) "; 247 + symbol = "🐍 "; 248 + style = "yellow bold"; 249 + pyenv_version_name = false; 250 + }; 251 + 252 + # Ruby 253 + ruby = { 254 + format = "[$symbol($version)]($style) "; 255 + symbol = "💎 "; 256 + style = "bold red"; 257 + }; 258 + 259 + # Rust 260 + rust = { 261 + format = "[$symbol($version)]($style) "; 262 + symbol = "🦀 "; 263 + style = "bold red"; 264 + }; 265 + 266 + # Java 267 + java = { 268 + format = "[$symbol($version)]($style) "; 269 + symbol = "♨️ "; 270 + style = "red dimmed"; 271 + }; 272 + 273 + # Swift 274 + swift = { 275 + format = "[$symbol($version)]($style) "; 276 + symbol = "🏎️ "; 277 + style = "bold 202"; 278 + }; 279 + 280 + # Shell indicator 281 + shell = { 282 + format = "[$indicator]($style) "; 283 + style = "white bold"; 284 + zsh_indicator = ""; 285 + bash_indicator = "bsh"; 286 + fish_indicator = "fish"; 287 + disabled = true; # enable if you switch shells often 288 + }; 289 + }; 290 + }; 291 + 102 292 programs.zsh = { 103 293 enable = true; 104 294 enableCompletion = true; ··· 172 362 173 363 initContent = '' 174 364 # ============================================================================ 175 - # POWERLEVEL10K INSTANT PROMPT 176 - # ============================================================================ 177 - if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then 178 - source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" 179 - fi 180 - 181 - # ============================================================================ 182 365 # HOMEBREW 183 366 # ============================================================================ 184 367 if [[ -f /opt/homebrew/bin/brew ]]; then ··· 199 382 source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" 200 383 autoload -Uz _zinit 201 384 (( ''${+_comps} )) && _comps[zinit]=_zinit 202 - 203 - # ============================================================================ 204 - # ZINIT THEME 205 - # ============================================================================ 206 - zinit ice depth"1"; zinit light romkatv/powerlevel10k 207 385 208 386 # ============================================================================ 209 387 # ZINIT PLUGINS ··· 308 486 309 487 # Mise activation 310 488 eval "$(mise activate zsh)" 311 - 312 - # ============================================================================ 313 - # POWERLEVEL10K CONFIGURATION 314 - # ============================================================================ 315 - [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh 316 489 ''; 317 490 }; 318 491
-199
rc/.p10k.zsh
··· 1 - # Generated by Powerlevel10k configuration wizard on 2025-01-27 at 13:06 EST. 2 - # Based on romkatv/powerlevel10k/config/p10k-pure.zsh, checksum 7533. 3 - # Wizard options: nerdfont-v3 + powerline, small icons, pure, original, rprompt, 4 - # 2 lines, sparse, transient_prompt, instant_prompt=verbose. 5 - # Type `p10k configure` to generate another config. 6 - # 7 - # Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure). 8 - # 9 - # Differences from Pure: 10 - # 11 - # - Git: 12 - # - `@c4d3ec2c` instead of something like `v1.4.0~11` when in detached HEAD state. 13 - # - No automatic `git fetch` (the same as in Pure with `PURE_GIT_PULL=0`). 14 - # 15 - # Apart from the differences listed above, the replication of Pure prompt is exact. This includes 16 - # even the questionable parts. For example, just like in Pure, there is no indication of Git status 17 - # being stale; prompt symbol is the same in command, visual and overwrite vi modes; when prompt 18 - # doesn't fit on one line, it wraps around with no attempt to shorten it. 19 - # 20 - # If you like the general style of Pure but not particularly attached to all its quirks, type 21 - # `p10k configure` and pick "Lean" style. This will give you slick minimalist prompt while taking 22 - # advantage of Powerlevel10k features that aren't present in Pure. 23 - 24 - # Temporarily change options. 25 - 'builtin' 'local' '-a' 'p10k_config_opts' 26 - [[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') 27 - [[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') 28 - [[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') 29 - 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' 30 - 31 - () { 32 - emulate -L zsh -o extended_glob 33 - 34 - # Unset all configuration options. 35 - unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' 36 - 37 - # Zsh >= 5.1 is required. 38 - [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return 39 - 40 - # Prompt colors. 41 - local grey='242' 42 - local red='1' 43 - local yellow='3' 44 - local blue='4' 45 - local magenta='5' 46 - local cyan='6' 47 - local white='7' 48 - 49 - # Left prompt segments. 50 - typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( 51 - # =========================[ Line #1 ]========================= 52 - # context # user@host 53 - dir # current directory 54 - vcs # git status 55 - # command_execution_time # previous command duration 56 - # =========================[ Line #2 ]========================= 57 - newline # \n 58 - # virtualenv # python virtual environment 59 - prompt_char # prompt symbol 60 - ) 61 - 62 - # Right prompt segments. 63 - typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( 64 - # =========================[ Line #1 ]========================= 65 - command_execution_time # previous command duration 66 - virtualenv # python virtual environment 67 - context # user@host 68 - # time # current time 69 - # =========================[ Line #2 ]========================= 70 - newline # \n 71 - ) 72 - 73 - # Basic style options that define the overall prompt look. 74 - typeset -g POWERLEVEL9K_BACKGROUND= # transparent background 75 - typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace 76 - typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR=' ' # separate segments with a space 77 - typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol 78 - typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons 79 - 80 - # Add an empty line before each prompt except the first. This doesn't emulate the bug 81 - # in Pure that makes prompt drift down whenever you use the Alt-C binding from fzf or similar. 82 - typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true 83 - 84 - # Magenta prompt symbol if the last command succeeded. 85 - typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=$magenta 86 - # Red prompt symbol if the last command failed. 87 - typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red 88 - # Default prompt symbol. 89 - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' 90 - # Prompt symbol in command vi mode. 91 - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮' 92 - # Prompt symbol in visual vi mode is the same as in command mode. 93 - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='❮' 94 - # Prompt symbol in overwrite vi mode is the same as in command mode. 95 - typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false 96 - 97 - # Grey Python Virtual Environment. 98 - typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=$grey 99 - # Don't show Python version. 100 - typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false 101 - typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= 102 - 103 - # Blue current directory. 104 - typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue 105 - 106 - # Context format when root: user@host. The first part white, the rest grey. 107 - typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f" 108 - # Context format when not root: user@host. The whole thing grey. 109 - typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE="%F{$grey}%n@%m%f" 110 - # Don't show context unless root or in SSH. 111 - typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_CONTENT_EXPANSION= 112 - 113 - # Show previous command duration only if it's >= 5s. 114 - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=5 115 - # Don't show fractional seconds. Thus, 7s rather than 7.3s. 116 - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 117 - # Duration format: 1d 2h 3m 4s. 118 - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' 119 - # Yellow previous command duration. 120 - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow 121 - 122 - # Grey Git prompt. This makes stale prompts indistinguishable from up-to-date ones. 123 - typeset -g POWERLEVEL9K_VCS_FOREGROUND=$grey 124 - 125 - # Disable async loading indicator to make directories that aren't Git repositories 126 - # indistinguishable from large Git repositories without known state. 127 - typeset -g POWERLEVEL9K_VCS_LOADING_TEXT= 128 - 129 - # Don't wait for Git status even for a millisecond, so that prompt always updates 130 - # asynchronously when Git state changes. 131 - typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0 132 - 133 - # Cyan ahead/behind arrows. 134 - typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND=$cyan 135 - # Don't show remote branch, current tag or stashes. 136 - typeset -g POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-untracked git-aheadbehind) 137 - # Don't show the branch icon. 138 - typeset -g POWERLEVEL9K_VCS_BRANCH_ICON= 139 - # When in detached HEAD state, show @commit where branch normally goes. 140 - typeset -g POWERLEVEL9K_VCS_COMMIT_ICON='@' 141 - # Don't show staged, unstaged, untracked indicators. 142 - typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED}_ICON= 143 - # Show '*' when there are staged, unstaged or untracked files. 144 - typeset -g POWERLEVEL9K_VCS_DIRTY_ICON='*' 145 - # Show '⇣' if local branch is behind remote. 146 - typeset -g POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON=':⇣' 147 - # Show '⇡' if local branch is ahead of remote. 148 - typeset -g POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON=':⇡' 149 - # Don't show the number of commits next to the ahead/behind arrows. 150 - typeset -g POWERLEVEL9K_VCS_{COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=1 151 - # Remove space between '⇣' and '⇡' and all trailing spaces. 152 - typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${${${P9K_CONTENT/⇣* :⇡/⇣⇡}// }//:/ }' 153 - 154 - # Grey current time. 155 - typeset -g POWERLEVEL9K_TIME_FOREGROUND=$grey 156 - # Format for the current time: 09:51:02. See `man 3 strftime`. 157 - typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' 158 - # If set to true, time will update when you hit enter. This way prompts for the past 159 - # commands will contain the start times of their commands rather than the end times of 160 - # their preceding commands. 161 - typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false 162 - 163 - # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt 164 - # when accepting a command line. Supported values: 165 - # 166 - # - off: Don't change prompt when accepting a command line. 167 - # - always: Trim down prompt when accepting a command line. 168 - # - same-dir: Trim down prompt when accepting a command line unless this is the first command 169 - # typed after changing current working directory. 170 - typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always 171 - 172 - # Instant prompt mode. 173 - # 174 - # - off: Disable instant prompt. Choose this if you've tried instant prompt and found 175 - # it incompatible with your zsh configuration files. 176 - # - quiet: Enable instant prompt and don't print warnings when detecting console output 177 - # during zsh initialization. Choose this if you've read and understood 178 - # https://github.com/romkatv/powerlevel10k#instant-prompt. 179 - # - verbose: Enable instant prompt and print a warning when detecting console output during 180 - # zsh initialization. Choose this if you've never tried instant prompt, haven't 181 - # seen the warning, or if you are unsure what this all means. 182 - typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose 183 - 184 - # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. 185 - # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload 186 - # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you 187 - # really need it. 188 - typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true 189 - 190 - # If p10k is already loaded, reload configuration. 191 - # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true. 192 - (( ! $+functions[p10k] )) || p10k reload 193 - } 194 - 195 - # Tell `p10k configure` which file it should overwrite. 196 - typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} 197 - 198 - (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} 199 - 'builtin' 'unset' 'p10k_config_opts'