Better HN
topnewbestaskshowjobs
Log inSign up

daraps

7 karma · joined May 21, 2020 (6y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

I just disable all hotplugging support in my OS. Anything plugged into the machine must be manually mounted, enabled, etc. This works really great for me as it's rare that anything is attached to this machine other than the charger.

comment 6y ago · link · parent

This is something I wrote a few days ago. All it requires is a POSIX shell and POSIX [, printf, dd and stty. Great for use in an initrd/initramfs or smaller environment as these tools are most likely available.

File operations (cp, mv, rm, etc) have not yet been implemented. It's on the TODO list. (though I'm unsure if they're even needed) We'll see. :)

Writing this was... interesting. POSIX shell is very limited in what it can do. Endless tricks have been used, see the "implementation details" section of the README.

Please let me know if you come across any issue.

I have also written a file manager in bash. https://github.com/dylanaraps/fff

Edit: To answer the "WHY?" question; I find pushing the shell beyond what it's supposed to do FUN!

3.

Show HN: shfm – a tiny TUI file manager written in Posix shell(github.com ↗)

6 points · by daraps · 6y ago · 1 comment