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:
3
.zshrc
3
.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
|
||||
|
||||
Reference in New Issue
Block a user