From 7e15993714b8287b33702b130c434833672d6e11 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 3 Sep 2025 12:39:40 +0300 Subject: [PATCH] Update zshrc with powerlevel10k --- .zshrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 48384bd..877c6a1 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:$HOME/.local/bin:/usr/local/bin:$PATH export PATH=$HOME/.cargo/bin:$PATH @@ -9,7 +16,7 @@ export ZSH="$HOME/.oh-my-zsh" # load a random theme each time Oh My Zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes -ZSH_THEME="robbyrussell" +ZSH_THEME="powerlevel10k/powerlevel10k" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load @@ -122,3 +129,6 @@ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(zoxide init zsh)" #eval $(/usr/bin/gnome-keyring-daemon --start --components=secrets) export SSH_AUTH_SOCK + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh