Refactoring bash and some tmux setting