From abb8e8f4fc26fd0d48f1233227b9b1456ac471fa Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Tue, 4 Jul 2023 13:27:53 -0400 Subject: [PATCH] zshrc: move base initialization above p10k instant init --- zsh/zshrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index db5a379..d7d6e28 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,3 +1,9 @@ +# start the x server if we're on tty0 and nothing is running +[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx + +# Bring "xterm" up to "xterm-256color", fairly well expected this should work +[[ "$TERM" == "xterm" ]] && export TERM="xterm-256color" + # 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. @@ -5,12 +11,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi -# start the x server if we're on tty0 and nothing is running -[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx - -# Bring "xterm" up to "xterm-256color", fairly well expected this should work -[[ "$TERM" == "xterm" ]] && export TERM="xterm-256color" - # make sure antigen exists if [[ ! -a ~/.antigen.zsh ]]; then wget https://git.io/antigen -O ~/.antigen.zsh