From ebf4937f323461366dc1be59e4a933f83f07715e Mon Sep 17 00:00:00 2001 From: "chawley (derry)" Date: Thu, 13 Feb 2020 11:25:56 -0500 Subject: [PATCH] .zshrc cleanup before repo move --- .zshrc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 696bcd1..f5b369c 100644 --- a/.zshrc +++ b/.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 + # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH @@ -54,7 +61,11 @@ COMPLETION_WAITING_DOTS="true" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git) +plugins=( + git + zsh-syntax-highlighting + ) + # User configuration @@ -133,4 +144,4 @@ export FZF_DEFAULT_COMMAND='find .' PATH="$HOME/.local/bin:$HOME/bin:$PATH" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh