Yarn

Recent twts in reply to #woga4pa

akoizumi@mizuki: /usr/home/akoizumi OS=$(uname -sr) ARCH=$(uname -m) HOSTNAME=$(hostname) go run nofetch.go
User: akoizumi (1001) 
Editor: emux 
Operating System: FreeBSD 13.0-RELEASE-p6 
Architecture: amd64 
Hostname: mizuki 
Shell: /bin/sh 

⤋ Read More

/*
   This is a silly nofetch(1) reimplementation in Go.
   Where most information is provided by yourself!
   i.e. OS, ARCH, HOSTNAME
*/

package main

import (
        "fmt"
        "os"
)

func main() {
        fmt.Printf("User: %s (%d) \n",os.Getenv("USER") ,os.Getuid())
        fmt.Printf("Editor: %s \n", os.Getenv("EDITOR"))
        fmt.Printf("Operating System: %s \n", os.Getenv("OS"))
        fmt.Printf("Architecture: %s \n", os.Getenv("ARCH"))
        fmt.Printf("Hostname: %s \n", os.Getenv("HOSTNAME"))
        fmt.Printf("Shell: %s \n", os.Getenv("SHELL"))
}

⤋ Read More

Participate

Login to join in on this yarn.