Refactor bash config