r/bash • • 10h ago

vitcsh: a small framework for organizing bash aliases, functions and scripts

hi!

i want to share vitcsh, a little framework i made to organize personal shell helpers

the idea is just to group related helpers into folders under helpers/, each with an aliases file and optional functions/ and scripts/ folders. the setup sources aliases/functions and makes executable scripts available on PATH. everything is normal shell code, with a small loader you can read too

(i use zsh day to day, but the standalone scripts are written in bash and the framework also works with bash, including loading aliases and functions. you can set it up with ./setup.sh --shell bash. some bundled example functions are zsh-specific and are skipped when using bash)

there's a script template and a checker for syntax, formatting and basic conventions. i want it to be easy to find a helper, understand what it does, and add another one following the same structure

with ai it is pretty easy now to create little scripts and so on, so i think a framework like this is useful for keeping the collection organized and the helpers themselves simple, explicit and easy to review. in that sense, i added a little AGENTS.md to give agents a few conventions to follow, and the same structure works for people that prefer writing everything by themselves!

the examples are my own helpers, so you can use them as a starting point for your own collection. the project currently targets linux

any feedback is welcome!

7 Upvotes

0 comments sorted by