-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·75 lines (57 loc) · 2.2 KB
/
setup.sh
File metadata and controls
executable file
·75 lines (57 loc) · 2.2 KB
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
# ---------------------------------------------------------------------
# (Neo)vim
# ---------------------------------------------------------------------
# Install ripgrep for CtrlP
# Install nvim
if [ "$(uname)" == "Darwin" ]; then
brew install ripgrep
brew install neovim
else
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install -y ripgrep
sudo apt-get install -y neovim curl
fi
# download plugin manager for vim
#curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# download plugin manager for nvim
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
#cp vim/vimrc ~/.vimrc
mkdir -p ~/.config/nvim
mkdir -p ~/.config/nvim/after/ftplugin
cp nvim/init.vim ~/.config/nvim/init.vim
cp nvim/c.vim ~/.config/nvim/after/ftplugin/c.vim
cp nvim/c.vim ~/.config/nvim/after/ftplugin/cpp.vim
# ---------------------------------------------------------------------
# Git
# ---------------------------------------------------------------------
cp git/gitconfig ~/.gitconfig
# ---------------------------------------------------------------------
# Tmux
# ---------------------------------------------------------------------
# install tmux
if [ "$(uname)" == "Darwin" ]; then
brew install tmux
brew install reattach-to-user-namespace
cp tmux/tmux-macos.conf ~/.tmux.conf
else
sudo apt-get install -y tmux
sudo apt-get install -y xsel
cp tmux/tmux-linux.conf ~/.tmux.conf
fi
# download plugin manager for tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/scripts/install_plugins.sh
# ---------------------------------------------------------------------
# Tex
# ---------------------------------------------------------------------
cp tex/latexmkrc ~/.latexmkrc
# ---------------------------------------------------------------------
# Bash
# ---------------------------------------------------------------------
cat bash/bashrc >> ~/.bashrc
cat bash/bash_profile >> ~/.bash_profile
cat bash/inputrc >> ~/.inputrc