Hacker News new | ask | show | jobs
by nepthar 786 days ago
I made something called shell workspaces[0] for this.

I like to tinker with bash and this has helped me keep all of the commands relevant to a particular project discoverable, accessible, and documented.

It uses a function "," for command execution. So, for instance, if the workspace file defines a function "build", when you're in the workspace, the command `$ , build` will run it.

It's not the most comprehensive solution to this, but it's probably the bit of shell programming that I use almost every day and has saved me tons of time.

[0] https://github.com/nepthar/ws.sh

1 comments

I'm not sure I understand. Is the idea to step through a script, maybe executing the default value of each line, but offering the opportunity to edit that line before executing it?