[zsh] add powerlevel10k
This commit is contained in:
parent
3c8f4b48f9
commit
7ea9b7a4fb
16
.zshrc
16
.zshrc
|
@ -1,9 +1,16 @@
|
|||
stty -ixon # Disable ctrl-s and ctrl-q.
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
stty -ixon # Disable ctrl-s and ctrl-q.
|
||||
|
||||
# ssh-agent
|
||||
start_ssh_agent() {
|
||||
ssh-agent | grep -v \^echo > "$SSH_ENV"
|
||||
|
@ -28,6 +35,8 @@ zinit light Aloxaf/fzf-tab
|
|||
zinit light zsh-users/zsh-autosuggestions
|
||||
zinit light jeffreytse/zsh-vi-mode
|
||||
|
||||
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
||||
|
||||
zinit ice wait lucid
|
||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
||||
|
||||
|
@ -121,3 +130,6 @@ autoload -Uz compinit && compinit
|
|||
autoload -U +X bashcompinit && bashcompinit && complete -o bashdefault -o default -o nospace -C qpdf qpdf
|
||||
|
||||
zinit cdreplay -q
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[ -f ~/.p10k.zsh ] && source ~/.p10k.zsh
|
||||
|
|
Loading…
Reference in a new issue