From 0875e4e6b667c51a3d69213d671c5ec5298950d7 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 25 May 2020 19:29:50 +0200 Subject: [PATCH] add zsh10K --- zsh/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 3adfb1a..a874a4e 100755 --- 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 + zstyle :omz:plugins:ssh-agent agent-forwarding on # export SSH_KEY_PATH="~/.ssh/rsa_id" @@ -98,3 +105,5 @@ for file in ~/.zshrc.d/*; do source "$file" done +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh