mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
zshrc: move base initialization above p10k instant init
This commit is contained in:
12
zsh/zshrc
12
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
|
||||
|
||||
Reference in New Issue
Block a user