-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost_install_setup.sh
executable file
·48 lines (39 loc) · 1.18 KB
/
post_install_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
#!/bin/bash
# Check for required dependencies before continuing:
if [[ ! -a $(which git) ]]; then
echo "Error: git is not installed. Please install git first."
exit 1
fi
if [[ ! -a $(which stow) ]]; then
echo "Error: stow is not installed. Please install stow first."
exit 1
fi
if [[ ! -a $(which vim) ]]; then
echo "Error: vim is not installed. Please install vim first."
exit 1
fi
if [[ ! -a $(which tmux) ]]; then
echo "Error: tmux is not installed. Please install tmux first."
exit 1
fi
# Symlink everything in stow directory to home directory
cd ${HOME}/.dot/stow
for app in */; do
stow -t ${HOME} $app
done;
# Install vim plugins
vim +PlugInstall +qall
# Compile YouCompleteMe
~/.vim/plugged/YouCompleteMe/install.py --clangd-completer
# Set up tmux plugin manager
mkdir -p ~/.tmux/plugins
if [ ! -d ~/.tmux/plugins/tpm ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
# Install tmux plugins by starting a server (but not attaching to it),
# creating a new session (but not attaching to it), installing the
# plugins, then killing the server
tmux start-server
tmux new-session -d
~/.tmux/plugins/tpm/scripts/install_plugins.sh
tmux kill-server