add pip and tmux config, rvm install, and reorganize platform-dependent functions