Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# %F => color dict
# %f => reset color
# %~ => current path
# %* => time
# %* => time (same as %D{%H:%M:%S}, see strftime(3))
# %n => username
# %m => shortname host
# %(?..) => prompt conditional - %(condition.true.false)
Expand Down Expand Up @@ -131,6 +131,9 @@ prompt_pure_preprompt_render() {
# Initialize the preprompt array.
local -a preprompt_parts

# Optionally show the time.
[[ -n $PURE_PREPROMPT_STRFTIME ]] && preprompt_parts+=('%F{$prompt_pure_colors[time]}%D{'$PURE_PREPROMPT_STRFTIME'}')

# Suspended jobs in background.
if ((${(M)#jobstates:#suspended:*} != 0)); then
preprompt_parts+='%F{$prompt_pure_colors[suspended_jobs]}✦'
Expand Down Expand Up @@ -832,6 +835,7 @@ prompt_pure_setup() {
prompt:success magenta
prompt:continuation 242
suspended_jobs red
time white
user 242
user:root default
virtualenv 242
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ prompt pure
| **`PURE_GIT_DOWN_ARROW`** | Defines the git down arrow symbol. | `⇣` |
| **`PURE_GIT_UP_ARROW`** | Defines the git up arrow symbol. | `⇡` |
| **`PURE_GIT_STASH_SYMBOL`** | Defines the git stash symbol. | `≡` |
| **`PURE_PREPROMPT_STRFTIME`** | Set to `%H:%M:%S` (see strftime(3)) to show the time in the preprompt line. | `` |

## Zstyle options

Expand Down