3 ms·
Should it really be as terse as posix shell? If you think before you type, it's not a high-frequency REPL anymore.
by GoblinSlayer 4y ago
Should it really be as terse as posix shell? If you think before you type, it's not a high-frequency REPL anymore.
- TeMPOraL 4y agoThe main high-frequency bits are filesystem navigation and incrementally building pipes. cd foo/<tab> # oh, too many options <ret> ls -la cd bar/baz git status cat quux | grep xckd cat quux | grep -i xckd cat quux | grep -i xkcd cat quux | grep -i xkcd | xargs ... etc. The trial-and-error command refining is arguably what REPLs are for. It's the filesystem navigation that are the odd part. (INB4: don't give me the "useless use of cat", it factors out better like this and everyone does it anyway.)
- GoblinSlayer 4y agoThat's what I mean: it's a high-frequency REPL if you don't think before you type, i.e. trial and error.
- marklgr 4y agoFWIW, if you just like the filename on the left, you still can save forks with: `<quux grep xkcd`
- Joker_vD 4y agoIt's like trying to save money on matches.