A first try in getting the posix shells (zsh and bash) into one configuration sourced..
- Shell 100%
| .posix | ||
| .gitignore | ||
| .shell | ||
| .stow-local-ignore | ||
| README.md | ||
posix alias and environment
The configurations should work for bash AND zsh shells.
You can essentially just source one file - the .shell file.
. "$HOME/.shell"
Thats it. done!
User configuration
You can now add userconfiguration in the .posix/user.d/ dir. In there, you
should put shellscripts, which work with your configuration. If you need to have
bash and zsh working at the same time, your scripts have to check edge cases.
The easiest way to do this would be to check if [[ -n "$BASH_VERSION" ]] or if [[ -n "$ZSH_VERSION" ]]. You also can get your current shell with
shell=$(shell:get-shell) and then putting that in either an if statement or
case statement to check for "zsh" or "bash"