From abe29a142f4b40babcf223cbe7c8c7c9d8f4bdcd Mon Sep 17 00:00:00 2001 From: novaburst Date: Thu, 12 May 2022 13:09:10 +0000 Subject: [PATCH] Drums speak according as you strike. git-svn-id: file:///srv/svn/repo/mima/trunk@4 d2428f92-30f9-164c-8098-19ee57ce342c --- README | 6 +++--- main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index 756f5c5..7742558 100644 --- a/README +++ b/README @@ -4,13 +4,13 @@ Depends on: uname(1) ``` akoizumi@mizuki: ~/Repos/akoizumi/code/antifetch go run main.go -User: akoizumi (1001) +akoizumi (1001) @ mizuki + Editor: o Operating System: FreeBSD 13.0-RELEASE-p6 Architecture: amd64 -Hostname: mizuki Shell: /bin/sh ``` -Licensed under DPL-1.1 \ No newline at end of file +Licensed under DPL-1.1 diff --git a/main.go b/main.go index 4d7df71..d16520b 100644 --- a/main.go +++ b/main.go @@ -29,10 +29,10 @@ func main() { log.Fatal(errhost) } - fmt.Printf("User: %s (%d) \n",os.Getenv("USER") ,os.Getuid()) + fmt.Printf("%s (%d) @ %s", os.Getenv("USER"), os.Getuid(), getHost) + fmt.Printf("\n") fmt.Printf("Editor: %s \n", os.Getenv("EDITOR")) fmt.Printf("Operating System: %s", getOS) fmt.Printf("Architecture: %s", getArch) - fmt.Printf("Hostname: %s", getHost) fmt.Printf("Shell: %s \n", os.Getenv("SHELL")) }