From 54335bb04cbe8961427f7eea20d52de990591469 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Thu, 24 Sep 2020 12:11:14 +0200 Subject: [PATCH] zsh: start x if necessary --- .zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index ec5102f..82e0fb1 100644 --- a/.zshrc +++ b/.zshrc @@ -125,11 +125,8 @@ pull_develop() { # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -alias bls="br -dp" alias vim="nvim" -source /Users/frankeg/Library/Preferences/org.dystroy.broot/launcher/bash/br - neofetch if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" @@ -137,3 +134,6 @@ fi autoload bashcompinit && bashcompinit alias config='/usr/bin/git --git-dir=/Users/frankeg/.cfg/ --work-tree=/Users/frankeg' + +# Start X if necessary +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi