nitch
is a small and incredibly fast system fetch written fully in nim👑
without any dependencies, on my pc
it executes in around 1.70 miliseconds.
The source code of nitch
is highly documented and I hope it will act as a learning resource for nim
and linux systems architecture
If anything in the source code is unclear or is lacking in its explanation, open an issue. Sometimes you get too close to something and you fail to see the "bigger picture"!
btw written in nim👑
why nim👑
? because it's fast and simple
Requirements:
- nim
- nimble (usually included with your nim installation)
git clone https://github.com/arashi-software/nitch && cd nitch
make changes to src/funcs/drawing.nim
if desired; then compile/install nitch with
nimble install
There are also binaries availble on the release page
nitch
flags:
Usage:
nitch
nitch -h|--help
nitch -v|--version
Options:
-h, --help Show help message
-v, --version return version of program
-a, --ascii return fetch with ascii art
-s, --square return fetch with square corners
nitch
├── LICENSE
├── nitch
├── nitch.nimble
├── README.md
├── setup.sh
├── src
│ ├── assets
│ │ ├── assets.nim
│ │ └── logos.nim
│ ├── flags
│ │ └── args.nim
│ ├── funcs
│ │ ├── drawing.nim
│ │ ├── getDistroId.nim
│ │ ├── packages
│ │ │ ├── getDpkgPkgs.nim
│ │ │ ├── getPacmanPkgs.nim
│ │ │ ├── getPortagePkgs.nim
│ │ │ ├── getRpmPkgs.nim
│ │ │ └── getXbpsPkgs.nim
│ │ └── perform.nim
│ ├── nitches
│ │ ├── getDistro.nim
│ │ ├── getHostname.nim
│ │ ├── getKernel.nim
│ │ ├── getLogo.nim
│ │ ├── getPkgs.nim
│ │ ├── getRam.nim
│ │ ├── getShell.nim
│ │ ├── getUptime.nim
│ │ └── getUser.nim
│ ├── nitch.nim
│ └── nitch.nim.cfg
└── templates
├── bfetch
├── cfgParser.nim
├── colorTest.nim
├── data.dat
├── echo.sh
├── listFiles.nim
├── readLine.nim
├── refTest.nim
├── rxfetch
├── shellCheck.nim
├── slice.nim
├── test.cfg
├── testCounter.nim
├── testFile
├── testProc.nim
└── tupleTest.nim
8 directories, 43 files