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

vif
Olivier DOSSMANN 2019-10-14 22:32:54 +02:00
parent da32cc9692
commit a66889f5bc
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)