Last active
December 12, 2018 03:29
-
-
Save usbuild/c008625a939251f0018dd24271475eaf to your computer and use it in GitHub Desktop.
debian ubuntu server initialize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#install tmux git subversion wget uuid-dev liblzma-dev libgdbm-dev libncurses5-dev libbz2-dev libssl-dev libreadline-dev libsqlite3-dev libffi-dev | |
if [[ 1 -eq 2 ]]; then | |
echo "set-option -g default-shell /bin/zsh" > ~/.tmux.conf | |
mkdir ~/usr | |
mkdir ~/download | |
wget https://gist.githubusercontent.com/usbuild/21fd99f6341ef1db9758/raw/046cd4281f105963fb0ad741ba3782468d4ad366/vimrc -O ~/.vimrc | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
cd ~/download | |
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz | |
tar xvpf Python-3.7.1.tar.xz | |
cd ~/download/Python-3.7.1 | |
./configure --prefix=$HOME/usr | |
make -j8 | |
make install | |
cd ~/download | |
git clone https://github.com/vim/vim | |
cd vim | |
./configure --with-features=huge --enable-python3interp --with-python3-command=$HOME/usr/bin/python3 --prefix=$HOME/usr | |
make -j8 | |
make install | |
$HOME/usr/bin/vim +BundleInstall +qall | |
echo PATH="$HOME/usr/bin:\$PATH" >> $HOME/.zshrc | |
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
fi | |
ln -s $HOME/usr/bin/vim $HOME/usr/bin/vi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment