[zsh] add powerlevel10k

This commit is contained in:
odrling 2022-01-08 17:45:34 +01:00
parent 3c8f4b48f9
commit 7ea9b7a4fb
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75
2 changed files with 1625 additions and 2 deletions

1611
.p10k.zsh Normal file

File diff suppressed because it is too large Load diff

16
.zshrc
View file

@ -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