diff --git a/2023-09-09-225931_294x283_scrot.png b/2023-09-09-225931_294x283_scrot.png deleted file mode 100644 index e0e01a5..0000000 Binary files a/2023-09-09-225931_294x283_scrot.png and /dev/null differ diff --git a/README.md b/README.md index 9353a09..493276f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ -# tinyfetch -a simple fetch in C which is tiny and fast.. it takes 0.002 to 0.004s to fetch +# tinierfetch -# depends -- only c compiler and `TERM`, `LANG`, `USER`, `SHELL` environmental variables +it's tinyfetch but also tinier - you could probably fit this in a QR code +takes `0.001` to `0.003s` to fetch -# preview +## depends -![master](2023-09-09-225931_294x283_scrot.png) +a compiler (I used g++) and `TERM`, `LANG`, `USER`, `SHELL` environmental variables to be set + +## preview + +![yeah](./preview.png) diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..14cef77 Binary files /dev/null and b/preview.png differ diff --git a/tinierfetch.cpp b/tinierfetch.cpp new file mode 100644 index 0000000..595b443 --- /dev/null +++ b/tinierfetch.cpp @@ -0,0 +1,3 @@ +#include +#define e getenv +using namespace std;int main(){cout<<"\e[31muser:\e[0m "< -#include - -int main(void){ - printf("\x1b[31muser:\x1b[0m %s\n", getenv("USER")); - printf("\x1b[32msh:\x1b[0m %s\n", getenv("SHELL")); - printf("\x1b[33mterm:\x1b[0m %s\n", getenv("TERM")); - printf("\x1b[34mlocale:\x1b[0m %s\n", getenv("LANG")); - printf("\x1b[35mcolors: \x1b[0m\x1b[41m \x1b[42m \x1b[43m \x1b[44m \x1b[45m \x1b[0m\n"); - return 0; -}