zshrc: move base initialization above p10k instant init

This commit is contained in:
2023-07-04 13:27:53 -04:00
parent f5ece5bf92
commit abb8e8f4fc

View File

@@ -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. # 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.
@@ -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" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi 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 # make sure antigen exists
if [[ ! -a ~/.antigen.zsh ]]; then if [[ ! -a ~/.antigen.zsh ]]; then
wget https://git.io/antigen -O ~/.antigen.zsh wget https://git.io/antigen -O ~/.antigen.zsh