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
This commit is contained in:
2026-02-26 20:38:14 +00:00
parent 6fe6528f9b
commit 9eb75b6306

3
.zshrc
View File

@@ -1,7 +1,7 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n] # Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below. # 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 if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@@ -25,4 +25,3 @@ export PATH=/home/dylan/.opencode/bin:$PATH
# Env Variables # Env Variables
export EDITOR=nvim export EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim
source ~/powerlevel10k/powerlevel10k.zsh-theme