Refactor bash configuration