diff --git a/zsh/zshrc b/zsh/zshrc index 89482ce..3c9b8e4 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,3 +1,6 @@ +# start the x server if we're on tty0 and nothing is running +[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx + # make sure antigen exists if [[ ! -a ~/.antigen.zsh ]]; then wget https://git.io/antigen -O ~/.antigen.zsh @@ -5,8 +8,16 @@ fi # powerlevel9k config POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k -POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir virtualenv vcs) -POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status battery root_indicator background_jobs) +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(status context dir virtualenv vcs) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(root_indicator background_jobs) +POWERLEVEL9K_STATUS_OK=false +POWERLEVEL9K_VIRTUALENV_BACKGROUND=028 + +# Host-specific configuration +if [[ $HOST -eq 'hyrrokkin' ]]; then + POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND=051 + POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND=000 +fi # load in antigen source ~/.antigen.zsh