Drake
f47adb1aba
gitignore: remove *all* .vscode files.
3 years ago
Drake
d3182b059e
`ls`: change spacing, fix too many newlines.
3 years ago
Drake
e95295b804
gitignore: add vscode settings
3 years ago
Drake
1b77d46614
`uname`: add missing semicolon in new printf.
3 years ago
Drake
87a07a5dc2
all (but `yes`): re-add `\n`s to new `printf()`s
...
okay so apparently they're needed
3 years ago
Drake
47191b070d
TODO.md: remove todo for fixing clang.
3 years ago
Drake
9c217c5a2c
.gitignore: add a.out
3 years ago
Drake
01f7d53d15
all (but `yes`): use printf formatting
...
clang no longer complains!
3 years ago
Drake
09e94c66ee
`whoami`: remove uneeded lengthy typecast(?).
3 years ago
Drake
120dbef259
`yes`: remove uneeded username code.
3 years ago
Drake
01b31ee38b
TODO: add a few todos
3 years ago
Drake
a7c335c9a9
Makefile: massive improvements.
...
added messages about what the makefile is currently compiling
added new debug target for getting line nums with valgrind
heavily revamped help message
added @ infront of most target commands to prevent echoing commands
instead of specifying `-Ilib` in the actual command, prepend it to $CC_FLAGS
3 years ago
Drake
66661b3846
`uname`: remove uneeded malloc that was leaking memory
3 years ago
Drake
b7ea8dccde
Makefile: remove tv related cruft, set CC to GCC by default
...
a. is anyone *really* gonna use the makefile to build on webos
me no think so
b. set it to clang if you want
tbh idk how it worked previously considering i didnt set it
3 years ago
Drake
3a629b76f4
Makefile: change Makefile to use `all` instead of `make`
...
how did it even work before lol
3 years ago
Drake
c3e5485cf8
`uname`: return sysname on no argument instead of error
3 years ago
Drake
c0ab3fa25a
`basename`: instead of erroring on no arguments...
...
pass cwd to basename as instead
3 years ago
Drake
8a2afdc33a
`whoami`: misc improvements, including...
...
switching to `getlogin();` as the username fetcher (fun fact: i was messing with an ai (*not github copilot*), and it made this. i am mad that it made better code than me)
3 years ago
Drake
633b40c3a0
`yes`/Makefile: make yes compile in Makefile.
3 years ago
Drake
52de6400ae
`yes`: add yes to the arsenal
3 years ago
Drake
ea162487e2
`uname`: --help formatting, added -a/--all
3 years ago
Drake
f506732c0a
`uname`: add uname
3 years ago
Drake
c966b2921b
`basename`: add basename.
3 years ago
Drake
72ab287432
`ansi-colour.h`: switch define source for more flexibility
3 years ago
Drake
d48a31d8c4
`ls`: fix compiler warning
3 years ago
Drake
e6dd8663d6
`pwd`: add pwd
3 years ago
Drake
2bd11f8548
all: update help messages
...
previously help messages showed `--version` was "WIP", which it is no-longer
3 years ago
Drake
f3f2e772df
all: add universal version
...
instead of having a placeholder version command, it is now read from a #define in `lib/version.h`
3 years ago
Drake
6b6742dc21
`ls`: assorted code cleanup
3 years ago
Drake
d81516027c
`ls`: update help message
3 years ago
Drake
ce8c9f52ff
`ls`: add --columns, max length (owo i can only take so much daddy) of printing
3 years ago
Drake
2e91a4cab5
`ls`: fix memory leak in specified paths
3 years ago
Drake
998a92840f
Fix problem with specified paths in `ls`
3 years ago
Drake
5f8f10bb04
More cool improvements to `ls`
...
All memory leaks fixed!
Other misc things that I am forgetting
3 years ago
Drake
7e8821908c
Add missing string.h includes in whoami and arch
3 years ago
Drake
909000e44b
various large improvements to ls
...
fix colour (previously it was messing with the sorting as we add it before the sorting, so we moved it to happening during the printing stage)
fix problem with spaces in filenames breaking (we now use simoleons as delimiters. if it breaks now, why do you have a simoleon in your filename)
3 years ago
Drake
989bced475
add colour to ls
3 years ago
Drake
e1afd2d22d
Delete whoami
3 years ago
Drake
3387d79a0c
Delete arch
3 years ago
Drake
ca52b040a6
add ls n do a bunch more shit
3 years ago
Drake
db9061fbbf
Initial commit
...
Currently includes a (feature-complete?) version of `whoami` and `id`.
3 years ago