summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/zsh/p10k.zsh32
1 files changed, 15 insertions, 17 deletions
diff --git a/user-profiles/zsh/p10k.zsh b/user-profiles/zsh/p10k.zsh
index ff66f0df..d0dda29c 100644
--- a/user-profiles/zsh/p10k.zsh
+++ b/user-profiles/zsh/p10k.zsh
@@ -49,7 +49,10 @@
49 # =========================[ Line #1 ]========================= 49 # =========================[ Line #1 ]=========================
50 status # exit code of the last command 50 status # exit code of the last command
51 command_execution_time # duration of the last command 51 command_execution_time # duration of the last command
52 time # current time
52 background_jobs # presence of background jobs 53 background_jobs # presence of background jobs
54 # =========================[ Line #2 ]=========================
55 newline
53 direnv # direnv status (https://direnv.net/) 56 direnv # direnv status (https://direnv.net/)
54 asdf # asdf version manager (https://github.com/asdf-vm/asdf) 57 asdf # asdf version manager (https://github.com/asdf-vm/asdf)
55 virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) 58 virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
@@ -98,12 +101,10 @@
98 todo # todo items (https://github.com/todotxt/todo.txt-cli) 101 todo # todo items (https://github.com/todotxt/todo.txt-cli)
99 timewarrior # timewarrior tracking status (https://timewarrior.net/) 102 timewarrior # timewarrior tracking status (https://timewarrior.net/)
100 taskwarrior # taskwarrior task count (https://taskwarrior.org/) 103 taskwarrior # taskwarrior task count (https://taskwarrior.org/)
104 status # exit code of the last command
105 command_execution_time # duration of the last command
101 time # current time 106 time # current time
102 # =========================[ Line #2 ]========================= 107 background_jobs # presence of background jobs
103 newline
104 status
105 command_execution_time
106 time
107 # ip # ip address and bandwidth usage for a specified network interface 108 # ip # ip address and bandwidth usage for a specified network interface
108 # public_ip # public IP address 109 # public_ip # public IP address
109 # proxy # system-wide http/https/ftp proxy 110 # proxy # system-wide http/https/ftp proxy
@@ -189,10 +190,7 @@
189 # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' 190 # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'
190 191
191 ################################[ prompt_char: prompt symbol ]################################ 192 ################################[ prompt_char: prompt symbol ]################################
192 # Green prompt symbol if the last command succeeded. 193 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=010
193 typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76
194 # Red prompt symbol if the last command failed.
195 typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
196 # Default prompt symbol. 194 # Default prompt symbol.
197 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' 195 typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
198 # Prompt symbol in command vi mode. 196 # Prompt symbol in command vi mode.
@@ -266,7 +264,7 @@
266 # directory will be shortened only when prompt doesn't fit or when other parameters demand it 264 # directory will be shortened only when prompt doesn't fit or when other parameters demand it
267 # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below). 265 # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
268 # If set to `0`, directory will always be shortened to its minimum length. 266 # If set to `0`, directory will always be shortened to its minimum length.
269 typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80 267 typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=30%
270 # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this 268 # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
271 # many columns for typing commands. 269 # many columns for typing commands.
272 typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40 270 typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
@@ -336,14 +334,14 @@
336 # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls 334 # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls
337 # back to POWERLEVEL9K_DIR_FOREGROUND. 335 # back to POWERLEVEL9K_DIR_FOREGROUND.
338 # 336 #
339 # typeset -g POWERLEVEL9K_DIR_CLASSES=() 337 typeset -g POWERLEVEL9K_DIR_CLASSES=()
340 338
341 # Custom prefix. 339 # Custom prefix.
342 # typeset -g POWERLEVEL9K_DIR_PREFIX='%fin ' 340 # typeset -g POWERLEVEL9K_DIR_PREFIX='%fin '
343 341
344 #####################################[ vcs: git status ]###################################### 342 #####################################[ vcs: git status ]######################################
345 # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon. 343 # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
346 typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 ' 344 typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=''
347 345
348 # Untracked files icon. It's really a question mark, your font isn't broken. 346 # Untracked files icon. It's really a question mark, your font isn't broken.
349 # Change the value of this parameter to show a different icon. 347 # Change the value of this parameter to show a different icon.
@@ -456,7 +454,7 @@
456 # Don't show Git status in prompt for repositories whose workdir matches this pattern. 454 # Don't show Git status in prompt for repositories whose workdir matches this pattern.
457 # For example, if set to '~', the Git repository at $HOME/.git will be ignored. 455 # For example, if set to '~', the Git repository at $HOME/.git will be ignored.
458 # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'. 456 # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.
459 typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~' 457 # typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
460 458
461 # Disable the default Git status formatting. 459 # Disable the default Git status formatting.
462 typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true 460 typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
@@ -1495,13 +1493,13 @@
1495 # Current time color. 1493 # Current time color.
1496 typeset -g POWERLEVEL9K_TIME_FOREGROUND=66 1494 typeset -g POWERLEVEL9K_TIME_FOREGROUND=66
1497 # Format for the current time: 09:51:02. See `man 3 strftime`. 1495 # Format for the current time: 09:51:02. See `man 3 strftime`.
1498 typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' 1496 typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M}'
1499 # If set to true, time will update when you hit enter. This way prompts for the past 1497 # If set to true, time will update when you hit enter. This way prompts for the past
1500 # commands will contain the start times of their commands as opposed to the default 1498 # commands will contain the start times of their commands as opposed to the default
1501 # behavior where they contain the end times of their preceding commands. 1499 # behavior where they contain the end times of their preceding commands.
1502 typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false 1500 typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
1503 # Custom icon. 1501 # Custom icon.
1504 # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='' 1502 typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION=''
1505 # Custom prefix. 1503 # Custom prefix.
1506 # typeset -g POWERLEVEL9K_TIME_PREFIX='%fat ' 1504 # typeset -g POWERLEVEL9K_TIME_PREFIX='%fat '
1507 1505
@@ -1546,8 +1544,8 @@
1546 # typed after changing current working directory. 1544 # typed after changing current working directory.
1547 typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off 1545 typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
1548 1546
1549 function p10k-on-pre-prompt() { p10k display '1'=show '2/left/dir'=hide '2/right/(status|command_execution_time|time)'=hide } 1547 function p10k-on-pre-prompt() { p10k display '1'=show '2/left/dir'=hide '2/right/*'=show '2/right/(status|command_execution_time|time|background_jobs)'=hide }
1550 function p10k-on-post-prompt() { p10k display '2/left/(dir|prompt_char)'=show 'empty_line|1'=hide '2/right/(status|command_execution_time|time)'=show } 1548 function p10k-on-post-prompt() { p10k display '2/left/(dir|prompt_char)'=show 'empty_line|1'=hide '2/right/*'=hide '2/right/(status|command_execution_time|time|background_jobs)'=show }
1551 1549
1552 # Instant prompt mode. 1550 # Instant prompt mode.
1553 # 1551 #