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