Add zprofile

This commit is contained in:
flyingscorpio@arch-desktop 2020-09-02 16:43:50 +02:00
parent f986a58b87
commit e402232c7c
2 changed files with 9 additions and 3 deletions

View file

@ -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"

8
dotfiles/zsh/zprofile Normal file
View file

@ -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