A first try in getting the posix shells (zsh and bash) into one configuration sourced..
Find a file
2026-03-10 08:33:13 +01:00
.posix more color changes :) 2026-03-02 11:15:03 +01:00
.gitignore wip 2026-02-22 14:30:53 +01:00
.shell made it zsh compatible? 2026-03-10 08:33:13 +01:00
.stow-local-ignore added README and stow ignore file 2026-01-18 22:50:04 +01:00
README.md wip 2026-02-21 15:12:10 +01:00

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"