From e402232c7c2b877623ead24fe5f77a5b86421a2f Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Wed, 2 Sep 2020 16:43:50 +0200 Subject: [PATCH] Add zprofile --- dotfiles/bash/{profile => bash_profile} | 4 +--- dotfiles/zsh/zprofile | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) rename dotfiles/bash/{profile => bash_profile} (78%) create mode 100644 dotfiles/zsh/zprofile diff --git a/dotfiles/bash/profile b/dotfiles/bash/bash_profile similarity index 78% rename from dotfiles/bash/profile rename to dotfiles/bash/bash_profile index b261fab..424d832 100644 --- a/dotfiles/bash/profile +++ b/dotfiles/bash/bash_profile @@ -3,9 +3,7 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc -if [ -x /usr/bin/vim ]; then - export EDITOR="/usr/bin/vim" -fi +[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim" export PATH="$HOME/.local/bin:$PATH" export PATH="$PATH:$HOME/.cargo/bin" diff --git a/dotfiles/zsh/zprofile b/dotfiles/zsh/zprofile new file mode 100644 index 0000000..a880898 --- /dev/null +++ b/dotfiles/zsh/zprofile @@ -0,0 +1,8 @@ +# ~/.zprofile +# + +[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim" + +if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx +fi