From 7d213b29a6be54dbbfd22fcb661f94246fc770fb Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 31 Jan 2024 15:26:33 +0100 Subject: [PATCH] powerlevel10k added --- zsh/.zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 1e63253..c746f4c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,10 @@ +# 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 + # for kubectl autocomplete autoload -Uz compinit compinit @@ -108,3 +115,7 @@ source <(kubectl completion zsh) ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white' bindkey "^[[1;3C" forward-word bindkey "^[[1;3D" backward-word +source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh