4 ms·
I’ve been trying many of those but failing to switch because I’m too brainwashed by bash (even zsh trips me up when some non-bashisms happen to trigger) and end
by lloeki 6y ago
I’ve been trying many of those but failing to switch because I’m too brainwashed by bash (even zsh trips me up when some non-bashisms happen to trigger) and ended up writing one toy shell for me to peruse.
Goals/Plans/Ideas/Experiments:
- interactive, compatible with the subset of bash I use the most
- written in Ruby, forks only when necessary (e.g for subshells uses Ruby threads and pipes to spawn and connect new Shell instances)
- extensible via Ruby (i.e can define new functions in Ruby, accessible more or less directly from the shell)
- fzf support
- can be built against mruby to embed a Ruby VM + code in a single binary and not require any Ruby installed
- can be assembled into a single .rb to easily curl it into any machine where there’s a Ruby already
- no dependencies
- some sort of concurrent/async evaluation for fast start, prompt, autocompletion...
Still a long way to go, but I find the experience rewarding even if it ends up going nowhere.