From 9eb75b6306fbc5af2e62564ee6595b2ea0b192d3 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Thu, 26 Feb 2026 20:38:14 +0000 Subject: [PATCH] fix: duplicate powerlevel10k setting & always-on neofetch Running Neofetch on every shell spawn slows it down. Add check to ensure it's only an interactive shell --- .zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 47e4ce0..2708a8c 100644 --- a/.zshrc +++ b/.zshrc @@ -1,7 +1,7 @@ # 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. -neofetch +[[ -o interactive ]] && neofetch if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" @@ -25,4 +25,3 @@ export PATH=/home/dylan/.opencode/bin:$PATH # Env Variables export EDITOR=nvim export VISUAL=nvim -source ~/powerlevel10k/powerlevel10k.zsh-theme