-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.sh
executable file
·54 lines (40 loc) · 1.71 KB
/
setup.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
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# install packages
sudo apt-get update ;
sudo apt-get install -y tmux ;
sudo apt-get install -y vim ;
sudo apt-get install -y zsh ;
sudo apt-get install -y xclip ;
sudo apt-get install -y curl ;
# install cargo
curl https://sh.rustup.rs -sSf | sh
# vim plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ;
# oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ;
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ;
git clone https://github.com/jeffreytse/zsh-vi-mode \
$ZSH_CUSTOM/plugins/zsh-vi-mode ;
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ;
# install neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage ;
mv nvim.appimage ~/ ;
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' ;
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# install nodejs
cd ~
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh ;
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs ;
sudo npm install -g yarn ;
# copy config files
cp ~/configuration/.zshrc ~/ ;
cp ~/configuration/.bashrc ~/ ;
sudo cp ~/configuration/etc/vim/vimrc.* /etc/vim/ ;
mkdir -p ~/.config/nvim && cp ~/configuration/init.vim ~/.config/nvim/init.vim ;
cp ~/configuration/.tmux.conf ~/.tmux.conf ;
cp ~/configuration/.vimrc ~/.vimrc ;