mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Use POSIX LOGNAME environment variable
This commit is contained in:
parent
f5cc58ea9d
commit
fe8aaca320
1 changed files with 1 additions and 0 deletions
|
|
@ -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=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue