Fix indent

This commit is contained in:
Jeremy Gardais 2021-09-21 22:01:31 +02:00
parent 0de6b9edf1
commit c6aa7f2ded
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 20 additions and 18 deletions

12
zlogin
View File

@ -50,6 +50,10 @@ if [ $(command -v tmux) ]; then
fi fi
fi fi
# ssh-agent with fix socket path
## See load-ssh-agent function in ~/.zsh/zshrc
load-ssh-agent
# Recupere un caractere unique # Recupere un caractere unique
getc () getc ()
{ {
@ -66,7 +70,9 @@ if [ ${USER} != "root" ] && [ $(command -v startx) ]; then
# If it's a VC console and # If it's a VC console and
# no X session already launch and # no X session already launch and
# no ~/.noxorg file exist # no ~/.noxorg file exist
if [ -z "${SSH_TTY}" ] && [ -z "$(pidof /usr/lib/xorg/Xorg)" ] && [ ! -f ~/.noxorg ];then if [ -z "${SSH_TTY}" ] &&
[ ! -f "${HOME}/.noxorg" ] &&
! pidof "/usr/lib/xorg/Xorg" ; then
echo "Aucune session X11 détectée, voulez vous en lancer une ? [O|n]" echo "Aucune session X11 détectée, voulez vous en lancer une ? [O|n]"
getc start_x getc start_x
if [ `echo "$start_x" | grep "n"` ];then if [ `echo "$start_x" | grep "n"` ];then
@ -76,7 +82,3 @@ if [ ${USER} != "root" ] && [ $(command -v startx) ]; then
fi fi
fi fi
fi fi
# ssh-agent with fix socket path
## See load-ssh-agent function in ~/.zsh/zshrc
load-ssh-agent