powerlevel10k 配置

目录

powerlevel10k 配置方案

1
p4 git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 只显示相对路径,因为tmux可以显示全部路径
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last

## 在左边显示 hostname
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
    os_icon                 # os identifier
    context                 # user@hostname
)

## -----------------------------------------------------------------------------
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last
typeset -g POWERLEVEL9K_TIME_FORMAT=''
# Don't show context unless running with privileges or in SSH.
# Tip: Remove the next line to always show context.
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=

~/.p10k.zsh

william 支付宝支付宝
william 微信微信
0%