bashrc refactoring