mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 17:43:53 +02:00
Use POSIX LOGNAME environment variable
This commit is contained in:
@@ -171,6 +171,7 @@ hostname="$HOSTNAME"
|
||||
# ensure $HOME is set
|
||||
[ -z "$HOME" ] && HOME=~
|
||||
# ensure $USER is set
|
||||
[ -z "$USER" ] && USER="$LOGNAME"
|
||||
[ -z "$USER" ] && USER="$(command whoami 2> /dev/null)"
|
||||
|
||||
leading_data=""
|
||||
|
||||
Reference in New Issue
Block a user