新服务器配置

配置命令

wget https://github.com/zsh-users/zsh/archive/zsh-5.6.2.tar.gz -O /tmp/zsh-5.6.2.tar.gz \
&& tar zxvf /tmp/zsh-5.6.2.tar.gz \
&& cd /tmp/zsh-zsh-5.6.2/ \
&& ./configure –prefix=$HOME/.local \
&& make \
&& make install \
&& cd -

wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O /tmp/install-oh-my-zsh.sh \
&& sed -i ‘/env zsh/d’ /tmp/install-oh-my-zsh.sh \
&& sed -i ‘s/chsh -s/sudo chsh -s/g’ /tmp/install-oh-my-zsh.sh \
&& sh /tmp/install-oh-my-zsh.sh \
&& rm -f /tmp/install-oh-my-zsh.sh \
&& wget https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.zsh-theme -O ~/.oh-my-zsh/themes/honukai.zsh-theme \
&& sed -i.bak ‘/ZSH_THEME/s/\”.*\”/\”honukai\”/‘ ~/.zshrc

wget https://raw.githubusercontent.com/hughplay/lightvim/master/install.sh -O - | sh

git clone https://github.com/hughplay/tmux-config.git
&& wget https://raw.githubusercontent.com/hughplay/env/master/scripts/centos/install-tmux.sh
&& bash install-tmux.sh
&& cd tmux-config/
&& bash install.sh
&& export PATH=$HOME/.local/bin/:$PATH

ssh -N -D 7073 txr@cas