Drake
d3182b059e
`ls`: change spacing, fix too many newlines.
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
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
66661b3846
`uname`: remove uneeded malloc that was leaking memory
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
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
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