Generic bash initialization files with lossless history management