]> Git repositories of Izuru Yakumo - mima.git/commitdiff
Mirrored from mima.git master
authorwww <www@fc2ea6e8-c6e7-0842-b98a-cef0356f8df9>
Tue, 1 Oct 2024 00:44:33 +0000 (00:44 +0000)
committerwww <www@fc2ea6e8-c6e7-0842-b98a-cef0356f8df9>
Tue, 1 Oct 2024 00:44:33 +0000 (00:44 +0000)
git-svn-id: https://svn.chaotic.ninja/svn/mima-yakumo.izuru@1 fc2ea6e8-c6e7-0842-b98a-cef0356f8df9

43 files changed:
branches/master/.gitignore [new file with mode: 0644]
branches/master/COPYING [new file with mode: 0644]
branches/master/Makefile [new file with mode: 0644]
branches/master/README.md [new file with mode: 0644]
branches/master/cmd/mima/main.go [new file with mode: 0644]
branches/master/cmd/mima/mima_embed [new file with mode: 0644]
branches/master/go.mod [new file with mode: 0644]
branches/master/go.sum [new file with mode: 0644]
branches/master/man/mima.1.mdoc [new file with mode: 0644]
branches/origin-master/.gitignore [new file with mode: 0644]
branches/origin-master/COPYING [new file with mode: 0644]
branches/origin-master/Makefile [new file with mode: 0644]
branches/origin-master/README.md [new file with mode: 0644]
branches/origin-master/cmd/mima/main.go [new file with mode: 0644]
branches/origin-master/cmd/mima/mima_embed [new file with mode: 0644]
branches/origin-master/go.mod [new file with mode: 0644]
branches/origin-master/go.sum [new file with mode: 0644]
branches/origin-master/man/mima.1.mdoc [new file with mode: 0644]
branches/origin/.gitignore [new file with mode: 0644]
branches/origin/COPYING [new file with mode: 0644]
branches/origin/Makefile [new file with mode: 0644]
branches/origin/README.md [new file with mode: 0644]
branches/origin/cmd/mima/main.go [new file with mode: 0644]
branches/origin/cmd/mima/mima_embed [new file with mode: 0644]
branches/origin/go.mod [new file with mode: 0644]
branches/origin/go.sum [new file with mode: 0644]
branches/origin/man/mima.1.mdoc [new file with mode: 0644]
tags/v2024.01.14/COPYING [new file with mode: 0644]
tags/v2024.01.14/Makefile [new file with mode: 0644]
tags/v2024.01.14/README.md [new file with mode: 0644]
tags/v2024.01.14/cmd/mima/main.go [new file with mode: 0644]
tags/v2024.01.14/go.mod [new file with mode: 0644]
tags/v2024.01.14/go.sum [new file with mode: 0644]
tags/v2024.01.14/man/mima.1.mdoc [new file with mode: 0644]
trunk/.gitignore [new file with mode: 0644]
trunk/COPYING [new file with mode: 0644]
trunk/Makefile [new file with mode: 0644]
trunk/README.md [new file with mode: 0644]
trunk/cmd/mima/main.go [new file with mode: 0644]
trunk/cmd/mima/mima_embed [new file with mode: 0644]
trunk/go.mod [new file with mode: 0644]
trunk/go.sum [new file with mode: 0644]
trunk/man/mima.1.mdoc [new file with mode: 0644]

diff --git a/branches/master/.gitignore b/branches/master/.gitignore
new file mode 100644 (file)
index 0000000..e3b179d
--- /dev/null
@@ -0,0 +1,2 @@
+/mima
+mima.1
diff --git a/branches/master/COPYING b/branches/master/COPYING
new file mode 100644 (file)
index 0000000..44240d4
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/branches/master/Makefile b/branches/master/Makefile
new file mode 100644 (file)
index 0000000..336a158
--- /dev/null
@@ -0,0 +1,12 @@
+PREFIX=/usr/local
+
+build:
+       go build -v ./cmd/mima
+       mandoc -T man < ./man/mima.1.mdoc > mima.1
+clean:
+       rm mima mima.1
+install:
+       install -Dm0755 mima ${PREFIX}/bin/mima
+       install -Dm0644 mima.1 ${PREFIX}/share/man/man1/mima.1
+uninstall:
+       rm ${PREFIX}/bin/mima ${PREFIX}/share/man/man1/mima.1
diff --git a/branches/master/README.md b/branches/master/README.md
new file mode 100644 (file)
index 0000000..bb46adb
--- /dev/null
@@ -0,0 +1,52 @@
+# mima
+My own `neofetch` clone written from scratch in Go with a pixelated evil spirit staring at you.
+
+
+```shell
+  .  . .  .  . .  .  . ...X88  X. :.  .  . .  . .  . .  . . 
+   .       .       .  .  8 88 :8 8S8    .         .         
+     .  .    . 8@     %X 88 t8.t@@  :. .   . 8@ .    . .  . 
+ .       .   .;XXt;t%   8X 88@8@   ;::.. :;t;XX;:  .        
+   .  .    S:8@ %@@@X.8888X;.8S8S%;.: .@ 8@@@ X8      . .  .
+  .    .  .8 S8   .t:@@888@@8:.88@X@88tS 8   @% @   .     . 
+    .        t@tt S 88@XX8XSS8X8XXXtS@8 8%%:.X tt      .    
+  .   ... ...S88t;tX8@XX@X88X@S%@@%88X888@8 t X8    .    .  
+    . ..:. :.S8;t88X:@8@88@8@8tXS88888@:S%X tt 8      .    .
+  .     .S  %.:88Xt%@8@888S8@8888.%.SX8;@X@X%@ @%    .  .   
+         8   : 8:;t;@8S @:8;888888%% S8X;tS;;S@    .      . 
+  ..;:.S888     @t::8.8 8t;@@888S;t  8 S8;@XX  .      .     
+ . . .888S@S S  X8%:888 8888:@S8.88 :8X;t%X:..   .  .   . . 
+  ..tS%SXS 8%   X;;888;:8 .:XS888.   8%8@XX%X  .   .   .    
+ .   :tSX  8 . 8 ;t@@8SStXSS888888%S8S888%t;%X@      .    . 
+   . ..  @X8   88X;X8@8@X8888888.88XX8t;@%8tX%8.  .     .   
+ .     ..8S8   XXX;@%8;XSSSS88S8@@XS@;SXX%@%XX8     .  .    
+    .  .:88t.88@XX;@tXX@8S888S888@88X;@t8tXXX@X       .   . 
+ .   .  .8:8 XtX%@88XSXXXS8X@XX888@XS@X;@88SXX8... .    .   
+  .    ..88@888XXtX@@@;t88tX8@@X@@%8XX@t@8XX8;t:X    .     .
+     .  . .8;S:8S@XX8tS8:8XS% S  X8% 8;X.8SS8X8%t.     .  . 
+ . .      .@ S888;; 88t %%8S8@@8 @  ;@t8 ::8.8X;8           
+      .    @ 8%%XtX. .;:t%%t8@8;:t@ .:; .  %88S88   .  . .  
+  .    .   88 888@8@@@8888@8   .X8888888X:SSt S88:         .
+   . .   .:S888S 8SX@%St;;:8.8 8  .8 XSSXS 8t88.8 .. .  .   
+          .S8@%;X%t  S88XS8 8 @ 888888S;XS  ;8@@      .   . 
+ .  .  .   :;8t . ;;X@X.t: 888@88@ :;8888X  ..              
+   .    .  . 8:.StX .88 8  t%%%%%8:8  S88@S@.  .      . .  .
+     .       S8;XS  8 8 888@8 8 8 8 8 888%XS   .            
+ .     . .     . 8S8.88 8 8 8  8 8 8 8888  .t         .  .  
+   . .        . %@SS 8   8  88 S.S XS88.8SSt   .        .  .
+  .     .  .    ..XXS:X     ;  8  88@888S@ .    .   .       
+     .       .   .  :.88:888t%SXt;;%%%% @.  .    .    . . . 
+  .    . . .   .    . ;8;%;%t88;%S%S888S.    .    .  .      
+    .        .   .  tSX@.8S%8:8tt88SX@..      .  .     . .  
+
+
+yakumo_izuru @ madoka
+
+Editor: vim
+System: freebsd
+Kernel: 13.3-release
+Architecture:   amd64
+RAM:    66M/978M (78.548722%)
+Shell:  /bin/sh
+Uptime: 0d:4h:10m
+```
diff --git a/branches/master/cmd/mima/main.go b/branches/master/cmd/mima/main.go
new file mode 100644 (file)
index 0000000..af4a2d1
--- /dev/null
@@ -0,0 +1,47 @@
+// $TheSupernovaDuo: mima,v 2024.08.20 2023/08/20 09:53:10 yakumo_izuru Exp $
+//
+// Get current system information like neofetch(1) without fancy things.
+package main
+
+import (
+       "fmt"
+       "github.com/shirou/gopsutil/v3/host"
+       "github.com/shirou/gopsutil/v3/mem"
+       "log"
+       "os"
+       "runtime"
+       _ "embed"
+)
+
+//go:embed mima_embed
+var mima string
+
+func main() {
+       hostname, err := os.Hostname()
+       uptime, _ := host.Uptime()
+       v, _ := mem.VirtualMemory()
+
+       days := uptime / (60 * 60 * 24)
+       hours := (uptime - (days * 60 * 60 * 24)) / (60 * 60)
+       minutes := ((uptime - (days * 60 * 60 * 24)) - (hours * 60 * 60)) / 60
+
+       free_mem := v.Free / 1024 / 1024
+       total_mem := v.Total / 1024 / 1024
+
+       kernelversion, err := host.KernelVersion()
+
+       if err != nil {
+               log.Fatal(err)
+       }
+
+       fmt.Printf("%s\n", mima)
+       fmt.Printf("%s @ %s\n", os.Getenv("USER"), hostname)
+       fmt.Printf("\n")
+       fmt.Printf("Editor:\t%s\n", os.Getenv("EDITOR"))
+       fmt.Printf("System:\t%s\n", runtime.GOOS)
+       fmt.Printf("Kernel:\t%s\n", kernelversion)
+       fmt.Printf("Architecture:\t%s\n", runtime.GOARCH)
+       fmt.Printf("RAM:\t%vM/%vM (%f%%)\n", free_mem, total_mem, v.UsedPercent)
+       fmt.Printf("Shell:\t%s\n", os.Getenv("SHELL"))
+       fmt.Printf("Uptime:\t%dd:%dh:%dm\n", days, hours, minutes)
+}
diff --git a/branches/master/cmd/mima/mima_embed b/branches/master/cmd/mima/mima_embed
new file mode 100644 (file)
index 0000000..1ce23da
--- /dev/null
@@ -0,0 +1,25 @@
+                        . 88:;8888:                         
+  .  . .  .  . .  .  . .%   8 ;8 8%.. . . .  . .  . .  . .  
+   .       .    @  .  :8 88 @t @X@  .: . .  . @  .         .
+     .  .  8X%  %   X@X88tX8 .@88XSS%t:@88    S8     . .    
+ .       .  %%t    XS%@8@88%8@S8@%.;X8t8SX   ;S%:  .     .  
+   .  ..  .  t@ 8 X888@X.8XS;t%;@SS88@88.  @8@t @    .    . 
+  .  ....; 8 @.S8@XS%XS % t8@8:@  8@ X8%S@8@%tS X .    .    
+        .X    888t;;%8t :88tX8XS 8t  tXX:%@SSS.     .   .  .
+  ..;..8888  88.@X;t8X% 8XXX8888; %  XS8S;@@X    .    .     
+ . . .. 8  @X   @S%X88;:X.S:X@888%: .8@88XXSX .    .     .  
+  . :%8X@ 8:   @@%t8@@SX.%t888888SXX8X88S;::.8X     .  .   .
+ .      t@.8   @8t:t;8S8888X8SXXS8@ 8SS%@t@%@X@       .  .  
+   .     8%8.8XXS;t@X@8S:888888%88X8t;@S@t:XX@@   .         
+ .      ;X88X@8XS8 8@X;.8S8X XS X88S%8@%8 8XXtt8 :   .  .  .
+    .    :.@%St8S%t8;t;XSXXX    %X88;8%X8Stt8S8;S. .     .  
+  .   .  ..@ 8X888 %SSX8:.::SSXt. :;88@Xt%tX8S@S@      .    
+    .   .  S8S8@@XX%@88@8888   .88888@88S 888888          . 
+ .    .   .S8S8X8t8@8;8888: 8 8  88S88%%tS ;%8XS;    .  .   
+   .     .   8;:;8;.8X8. 88888@t8S  8X8X8:@:.:.       .    .
+  .   .    . 88SX%@ ::8 8  8 8  8 8  ..8@.@S%           .   
+    .   .     :Xt X::@@ 888 8 8  8 8@@88:..t@ .       .   . 
+  .               8;ttSX888X88XX8@.  SS t@     .  .     .   
+    . .  .  . .     :%: %S@X X8@S%S 88S8%: .    .     .   . 
+  .       .     .   %88SS t: ttt.88X%8%:.  .       .    .   
+
diff --git a/branches/master/go.mod b/branches/master/go.mod
new file mode 100644 (file)
index 0000000..de8edee
--- /dev/null
@@ -0,0 +1,15 @@
+module marisa.chaotic.ninja/mima
+
+go 1.18
+
+require github.com/shirou/gopsutil/v3 v3.22.10
+
+require (
+       github.com/go-ole/go-ole v1.2.6 // indirect
+       github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
+       github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
+       github.com/tklauser/go-sysconf v0.3.11 // indirect
+       github.com/tklauser/numcpus v0.6.0 // indirect
+       github.com/yusufpapurcu/wmi v1.2.2 // indirect
+       golang.org/x/sys v0.2.0 // indirect
+)
diff --git a/branches/master/go.sum b/branches/master/go.sum
new file mode 100644 (file)
index 0000000..c9f301c
--- /dev/null
@@ -0,0 +1,42 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
+github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
+github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
+github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
+github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
+github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
+github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
+github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
+github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/branches/master/man/mima.1.mdoc b/branches/master/man/mima.1.mdoc
new file mode 100644 (file)
index 0000000..d6aa673
--- /dev/null
@@ -0,0 +1,27 @@
+.\" vim: ft=nroff
+.Dd $Mdocdate$
+.Dt MIMA 1
+.Os
+.Sh NAME
+.Nm mima
+.Nd My own simple implementation of a neofetch program
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+It was more or less inspired by
+.Xr pfetch 1
+although it doesn't have fancy
+ASCII art at all, and the first
+version used to be written in
+shell and named
+.Xr nofetch 1
+which eventually got taken by
+acdw and made into a CHICKEN
+Scheme program, which has
+nothing to do with this
+or the older program.
+.Pp
+Its namesake is
+.Lk https://en.touhouwiki.net/wiki/Mima Mima
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
diff --git a/branches/origin-master/.gitignore b/branches/origin-master/.gitignore
new file mode 100644 (file)
index 0000000..e3b179d
--- /dev/null
@@ -0,0 +1,2 @@
+/mima
+mima.1
diff --git a/branches/origin-master/COPYING b/branches/origin-master/COPYING
new file mode 100644 (file)
index 0000000..44240d4
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/branches/origin-master/Makefile b/branches/origin-master/Makefile
new file mode 100644 (file)
index 0000000..336a158
--- /dev/null
@@ -0,0 +1,12 @@
+PREFIX=/usr/local
+
+build:
+       go build -v ./cmd/mima
+       mandoc -T man < ./man/mima.1.mdoc > mima.1
+clean:
+       rm mima mima.1
+install:
+       install -Dm0755 mima ${PREFIX}/bin/mima
+       install -Dm0644 mima.1 ${PREFIX}/share/man/man1/mima.1
+uninstall:
+       rm ${PREFIX}/bin/mima ${PREFIX}/share/man/man1/mima.1
diff --git a/branches/origin-master/README.md b/branches/origin-master/README.md
new file mode 100644 (file)
index 0000000..bb46adb
--- /dev/null
@@ -0,0 +1,52 @@
+# mima
+My own `neofetch` clone written from scratch in Go with a pixelated evil spirit staring at you.
+
+
+```shell
+  .  . .  .  . .  .  . ...X88  X. :.  .  . .  . .  . .  . . 
+   .       .       .  .  8 88 :8 8S8    .         .         
+     .  .    . 8@     %X 88 t8.t@@  :. .   . 8@ .    . .  . 
+ .       .   .;XXt;t%   8X 88@8@   ;::.. :;t;XX;:  .        
+   .  .    S:8@ %@@@X.8888X;.8S8S%;.: .@ 8@@@ X8      . .  .
+  .    .  .8 S8   .t:@@888@@8:.88@X@88tS 8   @% @   .     . 
+    .        t@tt S 88@XX8XSS8X8XXXtS@8 8%%:.X tt      .    
+  .   ... ...S88t;tX8@XX@X88X@S%@@%88X888@8 t X8    .    .  
+    . ..:. :.S8;t88X:@8@88@8@8tXS88888@:S%X tt 8      .    .
+  .     .S  %.:88Xt%@8@888S8@8888.%.SX8;@X@X%@ @%    .  .   
+         8   : 8:;t;@8S @:8;888888%% S8X;tS;;S@    .      . 
+  ..;:.S888     @t::8.8 8t;@@888S;t  8 S8;@XX  .      .     
+ . . .888S@S S  X8%:888 8888:@S8.88 :8X;t%X:..   .  .   . . 
+  ..tS%SXS 8%   X;;888;:8 .:XS888.   8%8@XX%X  .   .   .    
+ .   :tSX  8 . 8 ;t@@8SStXSS888888%S8S888%t;%X@      .    . 
+   . ..  @X8   88X;X8@8@X8888888.88XX8t;@%8tX%8.  .     .   
+ .     ..8S8   XXX;@%8;XSSSS88S8@@XS@;SXX%@%XX8     .  .    
+    .  .:88t.88@XX;@tXX@8S888S888@88X;@t8tXXX@X       .   . 
+ .   .  .8:8 XtX%@88XSXXXS8X@XX888@XS@X;@88SXX8... .    .   
+  .    ..88@888XXtX@@@;t88tX8@@X@@%8XX@t@8XX8;t:X    .     .
+     .  . .8;S:8S@XX8tS8:8XS% S  X8% 8;X.8SS8X8%t.     .  . 
+ . .      .@ S888;; 88t %%8S8@@8 @  ;@t8 ::8.8X;8           
+      .    @ 8%%XtX. .;:t%%t8@8;:t@ .:; .  %88S88   .  . .  
+  .    .   88 888@8@@@8888@8   .X8888888X:SSt S88:         .
+   . .   .:S888S 8SX@%St;;:8.8 8  .8 XSSXS 8t88.8 .. .  .   
+          .S8@%;X%t  S88XS8 8 @ 888888S;XS  ;8@@      .   . 
+ .  .  .   :;8t . ;;X@X.t: 888@88@ :;8888X  ..              
+   .    .  . 8:.StX .88 8  t%%%%%8:8  S88@S@.  .      . .  .
+     .       S8;XS  8 8 888@8 8 8 8 8 888%XS   .            
+ .     . .     . 8S8.88 8 8 8  8 8 8 8888  .t         .  .  
+   . .        . %@SS 8   8  88 S.S XS88.8SSt   .        .  .
+  .     .  .    ..XXS:X     ;  8  88@888S@ .    .   .       
+     .       .   .  :.88:888t%SXt;;%%%% @.  .    .    . . . 
+  .    . . .   .    . ;8;%;%t88;%S%S888S.    .    .  .      
+    .        .   .  tSX@.8S%8:8tt88SX@..      .  .     . .  
+
+
+yakumo_izuru @ madoka
+
+Editor: vim
+System: freebsd
+Kernel: 13.3-release
+Architecture:   amd64
+RAM:    66M/978M (78.548722%)
+Shell:  /bin/sh
+Uptime: 0d:4h:10m
+```
diff --git a/branches/origin-master/cmd/mima/main.go b/branches/origin-master/cmd/mima/main.go
new file mode 100644 (file)
index 0000000..af4a2d1
--- /dev/null
@@ -0,0 +1,47 @@
+// $TheSupernovaDuo: mima,v 2024.08.20 2023/08/20 09:53:10 yakumo_izuru Exp $
+//
+// Get current system information like neofetch(1) without fancy things.
+package main
+
+import (
+       "fmt"
+       "github.com/shirou/gopsutil/v3/host"
+       "github.com/shirou/gopsutil/v3/mem"
+       "log"
+       "os"
+       "runtime"
+       _ "embed"
+)
+
+//go:embed mima_embed
+var mima string
+
+func main() {
+       hostname, err := os.Hostname()
+       uptime, _ := host.Uptime()
+       v, _ := mem.VirtualMemory()
+
+       days := uptime / (60 * 60 * 24)
+       hours := (uptime - (days * 60 * 60 * 24)) / (60 * 60)
+       minutes := ((uptime - (days * 60 * 60 * 24)) - (hours * 60 * 60)) / 60
+
+       free_mem := v.Free / 1024 / 1024
+       total_mem := v.Total / 1024 / 1024
+
+       kernelversion, err := host.KernelVersion()
+
+       if err != nil {
+               log.Fatal(err)
+       }
+
+       fmt.Printf("%s\n", mima)
+       fmt.Printf("%s @ %s\n", os.Getenv("USER"), hostname)
+       fmt.Printf("\n")
+       fmt.Printf("Editor:\t%s\n", os.Getenv("EDITOR"))
+       fmt.Printf("System:\t%s\n", runtime.GOOS)
+       fmt.Printf("Kernel:\t%s\n", kernelversion)
+       fmt.Printf("Architecture:\t%s\n", runtime.GOARCH)
+       fmt.Printf("RAM:\t%vM/%vM (%f%%)\n", free_mem, total_mem, v.UsedPercent)
+       fmt.Printf("Shell:\t%s\n", os.Getenv("SHELL"))
+       fmt.Printf("Uptime:\t%dd:%dh:%dm\n", days, hours, minutes)
+}
diff --git a/branches/origin-master/cmd/mima/mima_embed b/branches/origin-master/cmd/mima/mima_embed
new file mode 100644 (file)
index 0000000..1ce23da
--- /dev/null
@@ -0,0 +1,25 @@
+                        . 88:;8888:                         
+  .  . .  .  . .  .  . .%   8 ;8 8%.. . . .  . .  . .  . .  
+   .       .    @  .  :8 88 @t @X@  .: . .  . @  .         .
+     .  .  8X%  %   X@X88tX8 .@88XSS%t:@88    S8     . .    
+ .       .  %%t    XS%@8@88%8@S8@%.;X8t8SX   ;S%:  .     .  
+   .  ..  .  t@ 8 X888@X.8XS;t%;@SS88@88.  @8@t @    .    . 
+  .  ....; 8 @.S8@XS%XS % t8@8:@  8@ X8%S@8@%tS X .    .    
+        .X    888t;;%8t :88tX8XS 8t  tXX:%@SSS.     .   .  .
+  ..;..8888  88.@X;t8X% 8XXX8888; %  XS8S;@@X    .    .     
+ . . .. 8  @X   @S%X88;:X.S:X@888%: .8@88XXSX .    .     .  
+  . :%8X@ 8:   @@%t8@@SX.%t888888SXX8X88S;::.8X     .  .   .
+ .      t@.8   @8t:t;8S8888X8SXXS8@ 8SS%@t@%@X@       .  .  
+   .     8%8.8XXS;t@X@8S:888888%88X8t;@S@t:XX@@   .         
+ .      ;X88X@8XS8 8@X;.8S8X XS X88S%8@%8 8XXtt8 :   .  .  .
+    .    :.@%St8S%t8;t;XSXXX    %X88;8%X8Stt8S8;S. .     .  
+  .   .  ..@ 8X888 %SSX8:.::SSXt. :;88@Xt%tX8S@S@      .    
+    .   .  S8S8@@XX%@88@8888   .88888@88S 888888          . 
+ .    .   .S8S8X8t8@8;8888: 8 8  88S88%%tS ;%8XS;    .  .   
+   .     .   8;:;8;.8X8. 88888@t8S  8X8X8:@:.:.       .    .
+  .   .    . 88SX%@ ::8 8  8 8  8 8  ..8@.@S%           .   
+    .   .     :Xt X::@@ 888 8 8  8 8@@88:..t@ .       .   . 
+  .               8;ttSX888X88XX8@.  SS t@     .  .     .   
+    . .  .  . .     :%: %S@X X8@S%S 88S8%: .    .     .   . 
+  .       .     .   %88SS t: ttt.88X%8%:.  .       .    .   
+
diff --git a/branches/origin-master/go.mod b/branches/origin-master/go.mod
new file mode 100644 (file)
index 0000000..de8edee
--- /dev/null
@@ -0,0 +1,15 @@
+module marisa.chaotic.ninja/mima
+
+go 1.18
+
+require github.com/shirou/gopsutil/v3 v3.22.10
+
+require (
+       github.com/go-ole/go-ole v1.2.6 // indirect
+       github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
+       github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
+       github.com/tklauser/go-sysconf v0.3.11 // indirect
+       github.com/tklauser/numcpus v0.6.0 // indirect
+       github.com/yusufpapurcu/wmi v1.2.2 // indirect
+       golang.org/x/sys v0.2.0 // indirect
+)
diff --git a/branches/origin-master/go.sum b/branches/origin-master/go.sum
new file mode 100644 (file)
index 0000000..c9f301c
--- /dev/null
@@ -0,0 +1,42 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
+github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
+github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
+github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
+github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
+github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
+github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
+github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
+github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/branches/origin-master/man/mima.1.mdoc b/branches/origin-master/man/mima.1.mdoc
new file mode 100644 (file)
index 0000000..d6aa673
--- /dev/null
@@ -0,0 +1,27 @@
+.\" vim: ft=nroff
+.Dd $Mdocdate$
+.Dt MIMA 1
+.Os
+.Sh NAME
+.Nm mima
+.Nd My own simple implementation of a neofetch program
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+It was more or less inspired by
+.Xr pfetch 1
+although it doesn't have fancy
+ASCII art at all, and the first
+version used to be written in
+shell and named
+.Xr nofetch 1
+which eventually got taken by
+acdw and made into a CHICKEN
+Scheme program, which has
+nothing to do with this
+or the older program.
+.Pp
+Its namesake is
+.Lk https://en.touhouwiki.net/wiki/Mima Mima
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
diff --git a/branches/origin/.gitignore b/branches/origin/.gitignore
new file mode 100644 (file)
index 0000000..e3b179d
--- /dev/null
@@ -0,0 +1,2 @@
+/mima
+mima.1
diff --git a/branches/origin/COPYING b/branches/origin/COPYING
new file mode 100644 (file)
index 0000000..44240d4
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/branches/origin/Makefile b/branches/origin/Makefile
new file mode 100644 (file)
index 0000000..336a158
--- /dev/null
@@ -0,0 +1,12 @@
+PREFIX=/usr/local
+
+build:
+       go build -v ./cmd/mima
+       mandoc -T man < ./man/mima.1.mdoc > mima.1
+clean:
+       rm mima mima.1
+install:
+       install -Dm0755 mima ${PREFIX}/bin/mima
+       install -Dm0644 mima.1 ${PREFIX}/share/man/man1/mima.1
+uninstall:
+       rm ${PREFIX}/bin/mima ${PREFIX}/share/man/man1/mima.1
diff --git a/branches/origin/README.md b/branches/origin/README.md
new file mode 100644 (file)
index 0000000..bb46adb
--- /dev/null
@@ -0,0 +1,52 @@
+# mima
+My own `neofetch` clone written from scratch in Go with a pixelated evil spirit staring at you.
+
+
+```shell
+  .  . .  .  . .  .  . ...X88  X. :.  .  . .  . .  . .  . . 
+   .       .       .  .  8 88 :8 8S8    .         .         
+     .  .    . 8@     %X 88 t8.t@@  :. .   . 8@ .    . .  . 
+ .       .   .;XXt;t%   8X 88@8@   ;::.. :;t;XX;:  .        
+   .  .    S:8@ %@@@X.8888X;.8S8S%;.: .@ 8@@@ X8      . .  .
+  .    .  .8 S8   .t:@@888@@8:.88@X@88tS 8   @% @   .     . 
+    .        t@tt S 88@XX8XSS8X8XXXtS@8 8%%:.X tt      .    
+  .   ... ...S88t;tX8@XX@X88X@S%@@%88X888@8 t X8    .    .  
+    . ..:. :.S8;t88X:@8@88@8@8tXS88888@:S%X tt 8      .    .
+  .     .S  %.:88Xt%@8@888S8@8888.%.SX8;@X@X%@ @%    .  .   
+         8   : 8:;t;@8S @:8;888888%% S8X;tS;;S@    .      . 
+  ..;:.S888     @t::8.8 8t;@@888S;t  8 S8;@XX  .      .     
+ . . .888S@S S  X8%:888 8888:@S8.88 :8X;t%X:..   .  .   . . 
+  ..tS%SXS 8%   X;;888;:8 .:XS888.   8%8@XX%X  .   .   .    
+ .   :tSX  8 . 8 ;t@@8SStXSS888888%S8S888%t;%X@      .    . 
+   . ..  @X8   88X;X8@8@X8888888.88XX8t;@%8tX%8.  .     .   
+ .     ..8S8   XXX;@%8;XSSSS88S8@@XS@;SXX%@%XX8     .  .    
+    .  .:88t.88@XX;@tXX@8S888S888@88X;@t8tXXX@X       .   . 
+ .   .  .8:8 XtX%@88XSXXXS8X@XX888@XS@X;@88SXX8... .    .   
+  .    ..88@888XXtX@@@;t88tX8@@X@@%8XX@t@8XX8;t:X    .     .
+     .  . .8;S:8S@XX8tS8:8XS% S  X8% 8;X.8SS8X8%t.     .  . 
+ . .      .@ S888;; 88t %%8S8@@8 @  ;@t8 ::8.8X;8           
+      .    @ 8%%XtX. .;:t%%t8@8;:t@ .:; .  %88S88   .  . .  
+  .    .   88 888@8@@@8888@8   .X8888888X:SSt S88:         .
+   . .   .:S888S 8SX@%St;;:8.8 8  .8 XSSXS 8t88.8 .. .  .   
+          .S8@%;X%t  S88XS8 8 @ 888888S;XS  ;8@@      .   . 
+ .  .  .   :;8t . ;;X@X.t: 888@88@ :;8888X  ..              
+   .    .  . 8:.StX .88 8  t%%%%%8:8  S88@S@.  .      . .  .
+     .       S8;XS  8 8 888@8 8 8 8 8 888%XS   .            
+ .     . .     . 8S8.88 8 8 8  8 8 8 8888  .t         .  .  
+   . .        . %@SS 8   8  88 S.S XS88.8SSt   .        .  .
+  .     .  .    ..XXS:X     ;  8  88@888S@ .    .   .       
+     .       .   .  :.88:888t%SXt;;%%%% @.  .    .    . . . 
+  .    . . .   .    . ;8;%;%t88;%S%S888S.    .    .  .      
+    .        .   .  tSX@.8S%8:8tt88SX@..      .  .     . .  
+
+
+yakumo_izuru @ madoka
+
+Editor: vim
+System: freebsd
+Kernel: 13.3-release
+Architecture:   amd64
+RAM:    66M/978M (78.548722%)
+Shell:  /bin/sh
+Uptime: 0d:4h:10m
+```
diff --git a/branches/origin/cmd/mima/main.go b/branches/origin/cmd/mima/main.go
new file mode 100644 (file)
index 0000000..af4a2d1
--- /dev/null
@@ -0,0 +1,47 @@
+// $TheSupernovaDuo: mima,v 2024.08.20 2023/08/20 09:53:10 yakumo_izuru Exp $
+//
+// Get current system information like neofetch(1) without fancy things.
+package main
+
+import (
+       "fmt"
+       "github.com/shirou/gopsutil/v3/host"
+       "github.com/shirou/gopsutil/v3/mem"
+       "log"
+       "os"
+       "runtime"
+       _ "embed"
+)
+
+//go:embed mima_embed
+var mima string
+
+func main() {
+       hostname, err := os.Hostname()
+       uptime, _ := host.Uptime()
+       v, _ := mem.VirtualMemory()
+
+       days := uptime / (60 * 60 * 24)
+       hours := (uptime - (days * 60 * 60 * 24)) / (60 * 60)
+       minutes := ((uptime - (days * 60 * 60 * 24)) - (hours * 60 * 60)) / 60
+
+       free_mem := v.Free / 1024 / 1024
+       total_mem := v.Total / 1024 / 1024
+
+       kernelversion, err := host.KernelVersion()
+
+       if err != nil {
+               log.Fatal(err)
+       }
+
+       fmt.Printf("%s\n", mima)
+       fmt.Printf("%s @ %s\n", os.Getenv("USER"), hostname)
+       fmt.Printf("\n")
+       fmt.Printf("Editor:\t%s\n", os.Getenv("EDITOR"))
+       fmt.Printf("System:\t%s\n", runtime.GOOS)
+       fmt.Printf("Kernel:\t%s\n", kernelversion)
+       fmt.Printf("Architecture:\t%s\n", runtime.GOARCH)
+       fmt.Printf("RAM:\t%vM/%vM (%f%%)\n", free_mem, total_mem, v.UsedPercent)
+       fmt.Printf("Shell:\t%s\n", os.Getenv("SHELL"))
+       fmt.Printf("Uptime:\t%dd:%dh:%dm\n", days, hours, minutes)
+}
diff --git a/branches/origin/cmd/mima/mima_embed b/branches/origin/cmd/mima/mima_embed
new file mode 100644 (file)
index 0000000..1ce23da
--- /dev/null
@@ -0,0 +1,25 @@
+                        . 88:;8888:                         
+  .  . .  .  . .  .  . .%   8 ;8 8%.. . . .  . .  . .  . .  
+   .       .    @  .  :8 88 @t @X@  .: . .  . @  .         .
+     .  .  8X%  %   X@X88tX8 .@88XSS%t:@88    S8     . .    
+ .       .  %%t    XS%@8@88%8@S8@%.;X8t8SX   ;S%:  .     .  
+   .  ..  .  t@ 8 X888@X.8XS;t%;@SS88@88.  @8@t @    .    . 
+  .  ....; 8 @.S8@XS%XS % t8@8:@  8@ X8%S@8@%tS X .    .    
+        .X    888t;;%8t :88tX8XS 8t  tXX:%@SSS.     .   .  .
+  ..;..8888  88.@X;t8X% 8XXX8888; %  XS8S;@@X    .    .     
+ . . .. 8  @X   @S%X88;:X.S:X@888%: .8@88XXSX .    .     .  
+  . :%8X@ 8:   @@%t8@@SX.%t888888SXX8X88S;::.8X     .  .   .
+ .      t@.8   @8t:t;8S8888X8SXXS8@ 8SS%@t@%@X@       .  .  
+   .     8%8.8XXS;t@X@8S:888888%88X8t;@S@t:XX@@   .         
+ .      ;X88X@8XS8 8@X;.8S8X XS X88S%8@%8 8XXtt8 :   .  .  .
+    .    :.@%St8S%t8;t;XSXXX    %X88;8%X8Stt8S8;S. .     .  
+  .   .  ..@ 8X888 %SSX8:.::SSXt. :;88@Xt%tX8S@S@      .    
+    .   .  S8S8@@XX%@88@8888   .88888@88S 888888          . 
+ .    .   .S8S8X8t8@8;8888: 8 8  88S88%%tS ;%8XS;    .  .   
+   .     .   8;:;8;.8X8. 88888@t8S  8X8X8:@:.:.       .    .
+  .   .    . 88SX%@ ::8 8  8 8  8 8  ..8@.@S%           .   
+    .   .     :Xt X::@@ 888 8 8  8 8@@88:..t@ .       .   . 
+  .               8;ttSX888X88XX8@.  SS t@     .  .     .   
+    . .  .  . .     :%: %S@X X8@S%S 88S8%: .    .     .   . 
+  .       .     .   %88SS t: ttt.88X%8%:.  .       .    .   
+
diff --git a/branches/origin/go.mod b/branches/origin/go.mod
new file mode 100644 (file)
index 0000000..de8edee
--- /dev/null
@@ -0,0 +1,15 @@
+module marisa.chaotic.ninja/mima
+
+go 1.18
+
+require github.com/shirou/gopsutil/v3 v3.22.10
+
+require (
+       github.com/go-ole/go-ole v1.2.6 // indirect
+       github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
+       github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
+       github.com/tklauser/go-sysconf v0.3.11 // indirect
+       github.com/tklauser/numcpus v0.6.0 // indirect
+       github.com/yusufpapurcu/wmi v1.2.2 // indirect
+       golang.org/x/sys v0.2.0 // indirect
+)
diff --git a/branches/origin/go.sum b/branches/origin/go.sum
new file mode 100644 (file)
index 0000000..c9f301c
--- /dev/null
@@ -0,0 +1,42 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
+github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
+github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
+github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
+github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
+github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
+github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
+github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
+github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/branches/origin/man/mima.1.mdoc b/branches/origin/man/mima.1.mdoc
new file mode 100644 (file)
index 0000000..d6aa673
--- /dev/null
@@ -0,0 +1,27 @@
+.\" vim: ft=nroff
+.Dd $Mdocdate$
+.Dt MIMA 1
+.Os
+.Sh NAME
+.Nm mima
+.Nd My own simple implementation of a neofetch program
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+It was more or less inspired by
+.Xr pfetch 1
+although it doesn't have fancy
+ASCII art at all, and the first
+version used to be written in
+shell and named
+.Xr nofetch 1
+which eventually got taken by
+acdw and made into a CHICKEN
+Scheme program, which has
+nothing to do with this
+or the older program.
+.Pp
+Its namesake is
+.Lk https://en.touhouwiki.net/wiki/Mima Mima
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
diff --git a/tags/v2024.01.14/COPYING b/tags/v2024.01.14/COPYING
new file mode 100644 (file)
index 0000000..304bfd3
--- /dev/null
@@ -0,0 +1,9 @@
+Discordian Public License (DPL)
+
+All Rites Reversed (ĸ) 3189 Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tags/v2024.01.14/Makefile b/tags/v2024.01.14/Makefile
new file mode 100644 (file)
index 0000000..336a158
--- /dev/null
@@ -0,0 +1,12 @@
+PREFIX=/usr/local
+
+build:
+       go build -v ./cmd/mima
+       mandoc -T man < ./man/mima.1.mdoc > mima.1
+clean:
+       rm mima mima.1
+install:
+       install -Dm0755 mima ${PREFIX}/bin/mima
+       install -Dm0644 mima.1 ${PREFIX}/share/man/man1/mima.1
+uninstall:
+       rm ${PREFIX}/bin/mima ${PREFIX}/share/man/man1/mima.1
diff --git a/tags/v2024.01.14/README.md b/tags/v2024.01.14/README.md
new file mode 100644 (file)
index 0000000..083d6e5
--- /dev/null
@@ -0,0 +1,14 @@
+# mima
+My own `neofetch` clone written from scratch in Go.
+It just does what it's supposed to do, without any fancy graphics (though I do intend in printing a Mima ASCII art alongside the content once I figure out how).
+
+```shell
+yakumo_izuru @ mizuki-reborn
+
+Editor: vim
+System: freebsd
+Architecture:   amd64
+RAM:    158M/3967M (57.970572%)
+Shell:  /bin/sh
+Uptime: 0d:13h:6m
+```
diff --git a/tags/v2024.01.14/cmd/mima/main.go b/tags/v2024.01.14/cmd/mima/main.go
new file mode 100644 (file)
index 0000000..eed31a5
--- /dev/null
@@ -0,0 +1,42 @@
+// $TheSupernovaDuo: mima,v 2024.01.14 2023/01/14 21:12:35 yakumo_izuru Exp $
+//
+// Get current system information like neofetch(1) without fancy things.
+package main
+
+import (
+       "fmt"
+       "os"
+       "log"
+       "runtime"
+       "github.com/shirou/gopsutil/v3/host"
+       "github.com/shirou/gopsutil/v3/mem"
+)
+
+func main() {
+       hostname, err := os.Hostname()
+       uptime, _ := host.Uptime()
+       v, _ := mem.VirtualMemory()
+
+       days := uptime / (60 * 60 * 24)
+       hours := (uptime - (days * 60 * 60 * 24)) / (60 * 60)
+       minutes := ((uptime - (days * 60 * 60 * 24))  -  (hours * 60 * 60)) / 60
+
+       free_mem := v.Free / 1024 / 1024
+       total_mem := v.Total / 1024 / 1024
+
+       kernelversion, err := host.KernelVersion()
+       
+       if err != nil {
+               log.Fatal(err)
+       }
+       
+       fmt.Printf("%s @ %s\n", os.Getenv("USER"), hostname)
+       fmt.Printf("\n")
+       fmt.Printf("Editor:\t%s\n", os.Getenv("EDITOR"))
+       fmt.Printf("System:\t%s\n", runtime.GOOS)
+       fmt.Printf("Kernel:\t%s\n", kernelversion)
+       fmt.Printf("Architecture:\t%s\n", runtime.GOARCH)
+       fmt.Printf("RAM:\t%vM/%vM (%f%%)\n", free_mem, total_mem, v.UsedPercent)
+       fmt.Printf("Shell:\t%s\n", os.Getenv("SHELL"))
+       fmt.Printf("Uptime:\t%dd:%dh:%dm\n", days, hours, minutes)
+}
diff --git a/tags/v2024.01.14/go.mod b/tags/v2024.01.14/go.mod
new file mode 100644 (file)
index 0000000..de8edee
--- /dev/null
@@ -0,0 +1,15 @@
+module marisa.chaotic.ninja/mima
+
+go 1.18
+
+require github.com/shirou/gopsutil/v3 v3.22.10
+
+require (
+       github.com/go-ole/go-ole v1.2.6 // indirect
+       github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
+       github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
+       github.com/tklauser/go-sysconf v0.3.11 // indirect
+       github.com/tklauser/numcpus v0.6.0 // indirect
+       github.com/yusufpapurcu/wmi v1.2.2 // indirect
+       golang.org/x/sys v0.2.0 // indirect
+)
diff --git a/tags/v2024.01.14/go.sum b/tags/v2024.01.14/go.sum
new file mode 100644 (file)
index 0000000..c9f301c
--- /dev/null
@@ -0,0 +1,42 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
+github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
+github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
+github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
+github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
+github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
+github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
+github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
+github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/tags/v2024.01.14/man/mima.1.mdoc b/tags/v2024.01.14/man/mima.1.mdoc
new file mode 100644 (file)
index 0000000..d6aa673
--- /dev/null
@@ -0,0 +1,27 @@
+.\" vim: ft=nroff
+.Dd $Mdocdate$
+.Dt MIMA 1
+.Os
+.Sh NAME
+.Nm mima
+.Nd My own simple implementation of a neofetch program
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+It was more or less inspired by
+.Xr pfetch 1
+although it doesn't have fancy
+ASCII art at all, and the first
+version used to be written in
+shell and named
+.Xr nofetch 1
+which eventually got taken by
+acdw and made into a CHICKEN
+Scheme program, which has
+nothing to do with this
+or the older program.
+.Pp
+Its namesake is
+.Lk https://en.touhouwiki.net/wiki/Mima Mima
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja
diff --git a/trunk/.gitignore b/trunk/.gitignore
new file mode 100644 (file)
index 0000000..e3b179d
--- /dev/null
@@ -0,0 +1,2 @@
+/mima
+mima.1
diff --git a/trunk/COPYING b/trunk/COPYING
new file mode 100644 (file)
index 0000000..44240d4
--- /dev/null
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2024 Izuru Yakumo <yakumo.izuru@chaotic.ninja>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/trunk/Makefile b/trunk/Makefile
new file mode 100644 (file)
index 0000000..336a158
--- /dev/null
@@ -0,0 +1,12 @@
+PREFIX=/usr/local
+
+build:
+       go build -v ./cmd/mima
+       mandoc -T man < ./man/mima.1.mdoc > mima.1
+clean:
+       rm mima mima.1
+install:
+       install -Dm0755 mima ${PREFIX}/bin/mima
+       install -Dm0644 mima.1 ${PREFIX}/share/man/man1/mima.1
+uninstall:
+       rm ${PREFIX}/bin/mima ${PREFIX}/share/man/man1/mima.1
diff --git a/trunk/README.md b/trunk/README.md
new file mode 100644 (file)
index 0000000..bb46adb
--- /dev/null
@@ -0,0 +1,52 @@
+# mima
+My own `neofetch` clone written from scratch in Go with a pixelated evil spirit staring at you.
+
+
+```shell
+  .  . .  .  . .  .  . ...X88  X. :.  .  . .  . .  . .  . . 
+   .       .       .  .  8 88 :8 8S8    .         .         
+     .  .    . 8@     %X 88 t8.t@@  :. .   . 8@ .    . .  . 
+ .       .   .;XXt;t%   8X 88@8@   ;::.. :;t;XX;:  .        
+   .  .    S:8@ %@@@X.8888X;.8S8S%;.: .@ 8@@@ X8      . .  .
+  .    .  .8 S8   .t:@@888@@8:.88@X@88tS 8   @% @   .     . 
+    .        t@tt S 88@XX8XSS8X8XXXtS@8 8%%:.X tt      .    
+  .   ... ...S88t;tX8@XX@X88X@S%@@%88X888@8 t X8    .    .  
+    . ..:. :.S8;t88X:@8@88@8@8tXS88888@:S%X tt 8      .    .
+  .     .S  %.:88Xt%@8@888S8@8888.%.SX8;@X@X%@ @%    .  .   
+         8   : 8:;t;@8S @:8;888888%% S8X;tS;;S@    .      . 
+  ..;:.S888     @t::8.8 8t;@@888S;t  8 S8;@XX  .      .     
+ . . .888S@S S  X8%:888 8888:@S8.88 :8X;t%X:..   .  .   . . 
+  ..tS%SXS 8%   X;;888;:8 .:XS888.   8%8@XX%X  .   .   .    
+ .   :tSX  8 . 8 ;t@@8SStXSS888888%S8S888%t;%X@      .    . 
+   . ..  @X8   88X;X8@8@X8888888.88XX8t;@%8tX%8.  .     .   
+ .     ..8S8   XXX;@%8;XSSSS88S8@@XS@;SXX%@%XX8     .  .    
+    .  .:88t.88@XX;@tXX@8S888S888@88X;@t8tXXX@X       .   . 
+ .   .  .8:8 XtX%@88XSXXXS8X@XX888@XS@X;@88SXX8... .    .   
+  .    ..88@888XXtX@@@;t88tX8@@X@@%8XX@t@8XX8;t:X    .     .
+     .  . .8;S:8S@XX8tS8:8XS% S  X8% 8;X.8SS8X8%t.     .  . 
+ . .      .@ S888;; 88t %%8S8@@8 @  ;@t8 ::8.8X;8           
+      .    @ 8%%XtX. .;:t%%t8@8;:t@ .:; .  %88S88   .  . .  
+  .    .   88 888@8@@@8888@8   .X8888888X:SSt S88:         .
+   . .   .:S888S 8SX@%St;;:8.8 8  .8 XSSXS 8t88.8 .. .  .   
+          .S8@%;X%t  S88XS8 8 @ 888888S;XS  ;8@@      .   . 
+ .  .  .   :;8t . ;;X@X.t: 888@88@ :;8888X  ..              
+   .    .  . 8:.StX .88 8  t%%%%%8:8  S88@S@.  .      . .  .
+     .       S8;XS  8 8 888@8 8 8 8 8 888%XS   .            
+ .     . .     . 8S8.88 8 8 8  8 8 8 8888  .t         .  .  
+   . .        . %@SS 8   8  88 S.S XS88.8SSt   .        .  .
+  .     .  .    ..XXS:X     ;  8  88@888S@ .    .   .       
+     .       .   .  :.88:888t%SXt;;%%%% @.  .    .    . . . 
+  .    . . .   .    . ;8;%;%t88;%S%S888S.    .    .  .      
+    .        .   .  tSX@.8S%8:8tt88SX@..      .  .     . .  
+
+
+yakumo_izuru @ madoka
+
+Editor: vim
+System: freebsd
+Kernel: 13.3-release
+Architecture:   amd64
+RAM:    66M/978M (78.548722%)
+Shell:  /bin/sh
+Uptime: 0d:4h:10m
+```
diff --git a/trunk/cmd/mima/main.go b/trunk/cmd/mima/main.go
new file mode 100644 (file)
index 0000000..af4a2d1
--- /dev/null
@@ -0,0 +1,47 @@
+// $TheSupernovaDuo: mima,v 2024.08.20 2023/08/20 09:53:10 yakumo_izuru Exp $
+//
+// Get current system information like neofetch(1) without fancy things.
+package main
+
+import (
+       "fmt"
+       "github.com/shirou/gopsutil/v3/host"
+       "github.com/shirou/gopsutil/v3/mem"
+       "log"
+       "os"
+       "runtime"
+       _ "embed"
+)
+
+//go:embed mima_embed
+var mima string
+
+func main() {
+       hostname, err := os.Hostname()
+       uptime, _ := host.Uptime()
+       v, _ := mem.VirtualMemory()
+
+       days := uptime / (60 * 60 * 24)
+       hours := (uptime - (days * 60 * 60 * 24)) / (60 * 60)
+       minutes := ((uptime - (days * 60 * 60 * 24)) - (hours * 60 * 60)) / 60
+
+       free_mem := v.Free / 1024 / 1024
+       total_mem := v.Total / 1024 / 1024
+
+       kernelversion, err := host.KernelVersion()
+
+       if err != nil {
+               log.Fatal(err)
+       }
+
+       fmt.Printf("%s\n", mima)
+       fmt.Printf("%s @ %s\n", os.Getenv("USER"), hostname)
+       fmt.Printf("\n")
+       fmt.Printf("Editor:\t%s\n", os.Getenv("EDITOR"))
+       fmt.Printf("System:\t%s\n", runtime.GOOS)
+       fmt.Printf("Kernel:\t%s\n", kernelversion)
+       fmt.Printf("Architecture:\t%s\n", runtime.GOARCH)
+       fmt.Printf("RAM:\t%vM/%vM (%f%%)\n", free_mem, total_mem, v.UsedPercent)
+       fmt.Printf("Shell:\t%s\n", os.Getenv("SHELL"))
+       fmt.Printf("Uptime:\t%dd:%dh:%dm\n", days, hours, minutes)
+}
diff --git a/trunk/cmd/mima/mima_embed b/trunk/cmd/mima/mima_embed
new file mode 100644 (file)
index 0000000..1ce23da
--- /dev/null
@@ -0,0 +1,25 @@
+                        . 88:;8888:                         
+  .  . .  .  . .  .  . .%   8 ;8 8%.. . . .  . .  . .  . .  
+   .       .    @  .  :8 88 @t @X@  .: . .  . @  .         .
+     .  .  8X%  %   X@X88tX8 .@88XSS%t:@88    S8     . .    
+ .       .  %%t    XS%@8@88%8@S8@%.;X8t8SX   ;S%:  .     .  
+   .  ..  .  t@ 8 X888@X.8XS;t%;@SS88@88.  @8@t @    .    . 
+  .  ....; 8 @.S8@XS%XS % t8@8:@  8@ X8%S@8@%tS X .    .    
+        .X    888t;;%8t :88tX8XS 8t  tXX:%@SSS.     .   .  .
+  ..;..8888  88.@X;t8X% 8XXX8888; %  XS8S;@@X    .    .     
+ . . .. 8  @X   @S%X88;:X.S:X@888%: .8@88XXSX .    .     .  
+  . :%8X@ 8:   @@%t8@@SX.%t888888SXX8X88S;::.8X     .  .   .
+ .      t@.8   @8t:t;8S8888X8SXXS8@ 8SS%@t@%@X@       .  .  
+   .     8%8.8XXS;t@X@8S:888888%88X8t;@S@t:XX@@   .         
+ .      ;X88X@8XS8 8@X;.8S8X XS X88S%8@%8 8XXtt8 :   .  .  .
+    .    :.@%St8S%t8;t;XSXXX    %X88;8%X8Stt8S8;S. .     .  
+  .   .  ..@ 8X888 %SSX8:.::SSXt. :;88@Xt%tX8S@S@      .    
+    .   .  S8S8@@XX%@88@8888   .88888@88S 888888          . 
+ .    .   .S8S8X8t8@8;8888: 8 8  88S88%%tS ;%8XS;    .  .   
+   .     .   8;:;8;.8X8. 88888@t8S  8X8X8:@:.:.       .    .
+  .   .    . 88SX%@ ::8 8  8 8  8 8  ..8@.@S%           .   
+    .   .     :Xt X::@@ 888 8 8  8 8@@88:..t@ .       .   . 
+  .               8;ttSX888X88XX8@.  SS t@     .  .     .   
+    . .  .  . .     :%: %S@X X8@S%S 88S8%: .    .     .   . 
+  .       .     .   %88SS t: ttt.88X%8%:.  .       .    .   
+
diff --git a/trunk/go.mod b/trunk/go.mod
new file mode 100644 (file)
index 0000000..de8edee
--- /dev/null
@@ -0,0 +1,15 @@
+module marisa.chaotic.ninja/mima
+
+go 1.18
+
+require github.com/shirou/gopsutil/v3 v3.22.10
+
+require (
+       github.com/go-ole/go-ole v1.2.6 // indirect
+       github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
+       github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
+       github.com/tklauser/go-sysconf v0.3.11 // indirect
+       github.com/tklauser/numcpus v0.6.0 // indirect
+       github.com/yusufpapurcu/wmi v1.2.2 // indirect
+       golang.org/x/sys v0.2.0 // indirect
+)
diff --git a/trunk/go.sum b/trunk/go.sum
new file mode 100644 (file)
index 0000000..c9f301c
--- /dev/null
@@ -0,0 +1,42 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
+github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
+github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
+github.com/shirou/gopsutil/v3 v3.22.10 h1:4KMHdfBRYXGF9skjDWiL4RA2N+E8dRdodU/bOZpPoVg=
+github.com/shirou/gopsutil/v3 v3.22.10/go.mod h1:QNza6r4YQoydyCfo6rH0blGfKahgibh4dQmV5xdFkQk=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk=
+github.com/tklauser/go-sysconf v0.3.11 h1:89WgdJhk5SNwJfu+GKyYveZ4IaJ7xAkecBo+KdJV0CM=
+github.com/tklauser/go-sysconf v0.3.11/go.mod h1:GqXfhXY3kiPa0nAXPDIQIWzJbMCB7AmcWpGR8lSZfqI=
+github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ=
+github.com/tklauser/numcpus v0.6.0 h1:kebhY2Qt+3U6RNK7UqpYNA+tJ23IBEGKkB7JQBfDYms=
+github.com/tklauser/numcpus v0.6.0/go.mod h1:FEZLMke0lhOUG6w2JadTzp0a+Nl8PF/GFkQ5UVIcaL4=
+github.com/yusufpapurcu/wmi v1.2.2 h1:KBNDSne4vP5mbSWnJbO+51IMOXJB67QiYCSBrubbPRg=
+github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
+golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/trunk/man/mima.1.mdoc b/trunk/man/mima.1.mdoc
new file mode 100644 (file)
index 0000000..d6aa673
--- /dev/null
@@ -0,0 +1,27 @@
+.\" vim: ft=nroff
+.Dd $Mdocdate$
+.Dt MIMA 1
+.Os
+.Sh NAME
+.Nm mima
+.Nd My own simple implementation of a neofetch program
+.Sh SYNOPSIS
+.Nm
+.Sh DESCRIPTION
+It was more or less inspired by
+.Xr pfetch 1
+although it doesn't have fancy
+ASCII art at all, and the first
+version used to be written in
+shell and named
+.Xr nofetch 1
+which eventually got taken by
+acdw and made into a CHICKEN
+Scheme program, which has
+nothing to do with this
+or the older program.
+.Pp
+Its namesake is
+.Lk https://en.touhouwiki.net/wiki/Mima Mima
+.Sh AUTHORS
+.An Izuru Yakumo Aq Mt yakumo.izuru@chaotic.ninja