Refactoring bashrc&bashrc_essential