-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_install_script.sh
42 lines (34 loc) · 1.53 KB
/
simple_install_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# sudo apt-get install wget && wget https://github.com/GCorbel/dotfiles/raw/master/simple_install_script.sh -O - | sudo sh
apt-get update && apt-get install -y \
software-properties-common \
build-essential \
tmux zsh git libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip \
silversearcher-ag wget
# Install neovim
add-apt-repository ppa:neovim-ppa/unstable && \
apt-get update && \
apt-get install -y neovim python-dev python-pip python3-dev python3-pip
update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 && \
update-alternatives --config vi && \
update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 && \
update-alternatives --config vim && \
update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 && \
update-alternatives --config editor
cd ~
# Download and link all files
mkdir -p ~/.config && \
rm .bashrc && \
git clone https://github.com/GCorbel/dotfiles.git && \
ln -s ~/dotfiles/.vim ~/.config/nvim && \
ln -s ~/dotfiles/.vimrc_simple ~/.config/nvim/init.vim && \
ln -s ~/dotfiles/.tmux.conf . && \
ln -s ~/dotfiles/.zshrc . && \
ln -s ~/dotfiles/.bashrc . && \
ln -s ~/dotfiles/.pryrc .
rm -r ~/.config/nvim/bundle/Vundle.vim && \
git clone https://github.com/VundleVim/Vundle.vim.git ~/.config/nvim/bundle/Vundle.vim && \
nvim -c 'BundleInstall' -c 'qa!'
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true && \
chsh -s $(which zsh) && \
sed -i "s/robbyrussell/lukerandall/" ~/.zshrc
export TERM=xterm-256color