From be5a1b0b165054f9e2b5af2e84cd65c8df755ce7 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Mon, 13 Dec 2021 11:37:11 +0000 Subject: [PATCH] Added new ZSH theme with powerlevel10k --- zsh/.zshrc | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index de42339..1e07b24 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,13 @@ +# 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 + # Enable colors and change prompt -autoload -U colors && colors # Load colors -PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%(?:%{$fg[white]%}$:%{$fs_bold[red]%}<%?>$)%{$reset_color%}%b " +#autoload -U colors && colors # Load colors +#PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1~%{$fg[red]%}]%(?:%{$fg[white]%}$:%{$fs_bold[red]%}<%?>$)%{$reset_color%}%b " # Git prompt autoload -Uz vcs_info @@ -63,6 +70,10 @@ antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-autosuggestions antigen bundle zsh-users/zsh-completions + antigen theme romkatv/powerlevel10k antigen apply fi + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.zsh/p10k.zsh ]] || source ~/.zsh/p10k.zsh -- Gitblit v1.9.3