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