-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·124 lines (106 loc) · 3.16 KB
/
install.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Install packages
echo "Installing packages..."
sudo add-apt-repository -y ppa:longsleep/golang-backports
sudo apt-get update
# node 12
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y \
neovim \
docker \
docker-compose \
golang-1.13 \
kitty \
zsh \
zsh-autosuggestions \
ranger \
fzf \
npm \
composer \
ruby \
python-pip \
python3-pip \
cmake \
ccls \
universal-ctags \
build-essential \
binutils \
clang \
libsdl2-dev \
libsdl2-image-dev \
imagemagick \
openvpn \
openconnect \
network-manger-openvpn \
network-manger-openconnect \
network-manger-openvpn-gnome \
network-manger-openconnect-gnome \
kdeconnect \
ripgrep \
fd-find \
neofetch \
lm-sensors \
nodejs \
bochs \
bochs-x \
obs-studio \
v4l-utils
sudo usermod -aG docker $(whoami)
# Setting zsh as default shell
echo "Setting up zsh as default shell"
chsh -s $(which zsh)
# Setting up environment files
echo "Setting up environment files"
cd $HOME
echo "ZSH"
[ -f .zshrc ] && cp .zshrc .zshrc.bak
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "source $HOME/.dotfiles/zsh/zshrc" >> .zshrc
git clone https://github.com/z-shell/F-Sy-H.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
echo "BASH"
[ -f .bashrc ] && cp .bashrc .bashrc.bak
echo "source $HOME/.dotfiles/bash/bashrc" >> .bashrc
echo "Kitty"
[ ! -d .config/kitty ] && mkdir .config/kitty
echo "include $HOME/.dotfiles/kitty.conf" >> .config/kitty/kitty.conf
echo "NPM"
[ ! -d .npm-packages ] && mkdir .npm-packages
npm config set prefix $NPM_PACKAGES
npm i -g npm
echo "NeoVim"
[ ! -d .config/nvim ] && mkdir .config/nvim
echo "source $HOME/.dotfiles/init.vim" >> .config/nvim/init.vim
pip install pynvim jedi
pip3 install pynvim jedi
gem install neovim
sudo npm i -g neovim bash-language-server
nvim +PlugInstall +qall
nvim -c 'CocInstall -sync coc-json coc-tsserver coc-prettier coc-eslint coc-snippets coc-css coc-gocode coc-rls coc-vetur coc-python coc-phpls coc-yaml coc-vetur coc-angular coc-markdownlint coc-html|q'
ln -s .dotfiles/coc-settings.json $HOME/.config/nvim/.
echo "Git"
rm -rf .gitconfig .gitignore
ln -s .dotfiles/gitconfig .gitconfig
ln -s .dotfiles/gitignore .gitignore
git config --global core.excludesfile '$HOME/.gitignore'
echo "JS"
sudo npm i -g typescript tslint eslint prettier
# Installing base16 theme
echo "Installing base16 theme"
git clone https://github.com/chriskempson/base16-shell.git $HOME/.config/base16-shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
eval "base16_tomorrow-night"
echo "Rust"
curl https://sh.rustup.rs -sSf | sh
echo "Z"
wget https://raw.githubusercontent.com/rupa/z/master/z.sh -O $HOME/.z
echo "Ranger"
[ ! -d .config/ranger ] && mkdir .config/ranger
ranger --copy-config=all
echo "source $HOME/.dotfiles/ranger/rc.conf" >> .config/ranger/rc.conf
echo "Brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap aws/tap
brew install aws-sam-cli