ZSH: déplacement de code pour le démarrage de la session graphique

This commit is contained in:
Olivier DOSSMANN 2019-10-14 22:32:54 +02:00
parent db5512ee48
commit f665c5e301
2 changed files with 5 additions and 5 deletions

View File

@ -1 +1,6 @@
emulate sh -c '. ~/.profile'
# Start X automatically
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi

5
.zshrc
View File

@ -159,11 +159,6 @@ if [ ! $SSH_AGENT_PID ]; then
fi;
fi;
# Start X automatically
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
# Launch nvm possibilities (for javascript environment)
case $HOST in
lueur | baloo | sam)