# 2. Download and Install Git cd /usr/src wget https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz tar xzf git-2.10.0.tar.gz cd git-2.10.0 make prefix=/usr/local/git all make prefix=/usr/local/git install
# 3. Setup Environment export PATH=$PATH:/usr/local/git/bin source /etc/bashrc # Or zsh etc. ln -s /usr/local/git/bin/git /usr/local/bin
# 4. Check git --version
Vim
1 2 3 4 5 6
yum remove vi yum install -y vim git clone https://github.com/amix/vimrc.git ~/.vim_runtime sh ~/.vim_runtime/install_awesome_vimrc.sh # Include your staff like this git clone git@github.com:uguu-org/vim-matrix-screensaver.git ~/.vim_runtime/sources_non_forked/vim-matrix-screensaver
zsh & oh-my-zsh && zsh-users
1 2 3 4 5 6 7 8 9 10 11 12
yum install -y zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # Or # sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
cd ~/.oh-my-zsh/plugins git clone git://github.com/zsh-users/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
vim ~/.zshrc plugins=(git, zsh-autosuggestions, zsh-syntax-highlighting) source ~/.zshrc
wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz tar -zxvf ruby-2.3.1.tar.gz cdruby-2.3.1 # default installed to /usr/local, use `./configure --prefix=DIR` tochange ./configure make && make install
其他安装清单
1
yum install tmux lsof htop
alias
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
alias vi="vim" alias cls="clear" alias clshis="echo ''>~/.zshrc_history && echo '' > ~/.bash_history" alias chmd="chown -R www:www /data/wwwroot/" alias vzshrc="vim ~/.zshrc" alias szsh="source ~/.zshrc" alias sbash="source ~/.bash_profile" alias gad="git add . -A" alias gcmt='read comments && git commit -m "$comments"' alias gcm="git checkout master" alias gpullm="git pull origin master" alias vssh="vagrant ssh" alias vre="vagrant reload" alias vup="vagrant up" alias vgs="vagrant global-status" alias vhalt="vagrant halt"