mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
added duration-info
This commit is contained in:
parent
483b910c64
commit
8ce704b458
3 changed files with 12 additions and 1 deletions
10
zsh/prompt.zsh
Normal file
10
zsh/prompt.zsh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
setopt nopromptbang prompt{cr,percent,sp,subst}
|
||||
|
||||
zstyle ':zim:duration-info' threshold 0.5
|
||||
zstyle ':zim:duration-info' format '%.4d s'
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook preexec duration-info-preexec
|
||||
add-zsh-hook precmd duration-info-precmd
|
||||
|
||||
RPS1='${duration_info}%'
|
||||
|
|
@ -5,6 +5,7 @@ zmodule termtitle
|
|||
zmodule utility
|
||||
zmodule completion
|
||||
zmodule git-info
|
||||
zmodule duration-info
|
||||
zmodule prompt-pwd
|
||||
zmodule magicmace
|
||||
zmodule zsh-users/zsh-completions
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ fi
|
|||
autopair-init
|
||||
source ~/.zim/modules/fzf-tab/fzf-tab.plugin.zsh
|
||||
|
||||
|
||||
source ~/.config/zsh/prompt.zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue