refactorings in bash profile