mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2024-11-22 13:20:48 +00:00
it fits in a qr code
This commit is contained in:
parent
136bd18f24
commit
b92a7bdf86
6 changed files with 8 additions and 3 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.out
|
||||
fetch
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Abhiraj Rik
|
||||
Copyright (c) 2023 NotAShelf
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
it's tinyfetch but also tinier - you could probably fit this in a QR code
|
||||
takes `0.001` to `0.003s` to fetch
|
||||
|
||||
edit: it fits in a [QR code](./assets/qr.png)
|
||||
|
||||
## depends
|
||||
|
||||
a compiler (I used g++) and `TERM`, `LANG`, `USER`, `SHELL` environmental variables to be set
|
||||
|
||||
## preview
|
||||
|
||||
![yeah](./preview.png)
|
||||
![yeah](./assets/preview.png)
|
||||
|
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
BIN
assets/qr.png
Normal file
BIN
assets/qr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -1,3 +1,4 @@
|
|||
#include <iostream>
|
||||
#define e getenv
|
||||
using namespace std;int main(){cout<<"\e[31muser:\e[0m "<<e("USER")<<"\n\e[32msh:\e[0m "<<e("SHELL")<<"\n\e[33mterm:\e[0m "<<e("TERM")<<"\n\e[34mlocale:\e[0m "<<e("LANG")<<"\n\e[35mcolors:\e[0m\e[41m \e[42m \e[43m \e[44m \e[45m \e[0m\n";}
|
||||
#define p <<
|
||||
int main() { std::cout p "\e[31muser:\e[0m " p e("USER") p "\n\e[32msh:\e[0m " p e("SHELL") p "\n\e[33mterm:\e[0m " p e("TERM") p "\n\e[34mlocale:\e[0m " p e("LANG") p "\n\x1b[35mcolors: \x1b[0m\x1b[41m \x1b[42m \x1b[43m \x1b[44m " "\x1b[45m \x1b[0m\n"; return 0;}
|
||||
|
|
Loading…
Reference in a new issue