diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-11 18:37:39 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-11 18:37:39 +0300 |
commit | b1e25166433ce93403324a96f129712e4fac944d (patch) | |
tree | 3c168076c6699009ebc85fe1ebd3a65970853481 /src/builtins.rs | |
parent | Make Prompt more const (diff) | |
download | rshell-b1e25166433ce93403324a96f129712e4fac944d.tar.xz |
Properly read username and hostname
username is read by using libc::getuid, and checking /etc/passwd for the
uid and getting the username from there
hostname is read from /proc/sys/kernel/hostname
Diffstat (limited to 'src/builtins.rs')
0 files changed, 0 insertions, 0 deletions