-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·48 lines (48 loc) · 1.83 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
#!/bin/bash
ln -s -f ~/dotfiles/tmux.conf ~/.tmux.conf
ln -s -f ~/dotfiles/ctags ~/ctags
ln -s -f ~/dotfiles/zpreztorc ~/.zpreztorc
ln -s -f ~/dotfiles/zshrc ~/.zshrc
ln -s -f ~/dotfiles/ctags ~/ctags
ln -s -f ~/dotfiles/vim/vimrc ~/.vimrc
ln -s ~/dotfiles/flake8 ~/.flake8
if [ "$(uname)" == "Darwin" ]; then
brew update
brew install python3 node tmux zsh neovim vim go
# brew install reattach-to-user-namespace
# not needed anymore in newer tmux versions
ln -s ~/dotfiles/hammerspoon ~/.hammerspoon
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "linux"
sudo apt-get install zsh
sudo apt-get install tmux
sudo apt-get install vim
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get install npm
sudo apt-get install dconf-cli
sudo apt-get install python-dev python-pip python3-dev python3-pip
git clone https://github.com/Anthony25/gnome-terminal-colors-solarized ~/gnome-terminal-colors-solarized
~/gnome-terminal-colors-solarized/install.sh
fi
npm config set prefix '~/.npm-packages'
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
chsh -s /bin/zsh
exec zsh
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
pip3 install --user pynvim
pip3 install --user --upgrade pynvim
pip3 install --user neovim-remote
pip3 install --user --upgrade neovim-remote
mkdir ~/.config
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim
nvim +PlugInstall +UpdateRemotePlugins +GoInstallBinaries +q
# manually install tpm tmux plugins with prefix + I
zprezto-update