Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: shfm – a tiny TUI file manager written in Posix shell (github.com/dylanaraps)
6 points by daraps on Aug 6, 2020 | hide | past | favorite | 1 comment


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: