diff options
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | src/ascii.c | 1 | ||||
| -rw-r--r-- | src/cfetch.c | 3 |
3 files changed, 10 insertions, 3 deletions
@@ -62,8 +62,17 @@ sudo make uninstall Run executable: ``` cfetch +cfetch -v --version // prints the version of cfetch +cfetch -h --help // prints the helper menu ``` +## Configuration + +at the current time all configuration is done via the `cfetch.c` file. +- change ascii art: manipulate `info.ascii_art` +- change infomation: comment the `get_<name>` functions. + - unconveniently one has to comment out the corrosponding printf statemant in `ascii.c` `print_system_info` function + ## Features - not much ! | Feature | Linux | diff --git a/src/ascii.c b/src/ascii.c index 5fc81be..b47b400 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -83,7 +83,6 @@ void print_system_info(struct system_info_t *info) printf("Kernel: %s\n", info->kernel); printf("CPU: %s\n", info->cpu); printf("%s\n", info->memory); - //printf(logo) print_ascii_art(info); } diff --git a/src/cfetch.c b/src/cfetch.c index 5b41121..eef3bae 100644 --- a/src/cfetch.c +++ b/src/cfetch.c @@ -42,17 +42,16 @@ int main(int argc, char **argv) // set systeminformation // use // to uncomment or comment + get_os_release(&info); get_kernel(&info); get_cpu(&info); get_memory(&info); - get_os_release(&info); print_system_info(&info); return 0; } /* not yet implemented: - get_os: Ubuntu <version> get_uptime get_packages get_shell |
