mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
get rid of the who -m ssh session test
I dont like executing a binary in a fast startup script. Lets see if there are a lot of sessions in the wild that dont use the SSH_TTY env var
This commit is contained in:
@@ -235,9 +235,6 @@ _ksi_deferred_init() {
|
||||
builtin local is_ssh_session="n"
|
||||
if [[ -n "$SSH_TTY$SSH2_TTY" ]]; then
|
||||
is_ssh_session="y";
|
||||
elif [[ -n "$(builtin command -v who)" ]]; then
|
||||
# OpenSSH's sshd creates entries in utmp for every login so use those
|
||||
[[ "$(builtin command who -m 2> /dev/null)" =~ "\([a-fA-F.:0-9]+\)$" ]] && is_ssh_session="y";
|
||||
fi
|
||||
|
||||
if [[ "$is_ssh_session" == "y" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user