tidy up bashrc with some compartmentalisation