-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgce-ubuntu.sh
executable file
·48 lines (35 loc) · 1.63 KB
/
gce-ubuntu.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
#!/bin/bash
# install packages
sudo apt-get update
sudo apt-get install -y tmux
sudo apt-get install -y zsh
sudo apt-get install -y xclip
sudo apt install -y libfuse2
# install cargo
curl https://sh.rustup.rs -sSf | sh
# install ripgrep
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
sudo dpkg -i ripgrep_13.0.0_amd64.deb
# 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)" -y
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:-~/.oh-my-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
# 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