create proper shell config structure

split bash and posix logic explicitly