dotfiles with stow

This commit is contained in:
Michael Chalupiak
2024-09-05 19:14:30 -04:00
parent 2c44971f2f
commit 00f346b438
99 changed files with 28618 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
int main(int argc, char** argv) {
if (argc != 2) {
return -1;
}
bool rel = true;
if (argv[1][1] == '/') {
rel = false;
}
char* last = strrchr(argv[1], '/');
*last = '\0';
puts(argv[1]);
return 0;
}