-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_system.sh
executable file
·85 lines (73 loc) · 2.74 KB
/
install_system.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
#!/bin/bash
if [ ! -e "$HOME/git/z/" ]; then
echo "================"
echo "= Installing z ="
echo "================"
if [ ! -e "$HOME/git/" ]; then
mkdir "$HOME/git"
fi
cd "$HOME/git"
git clone git@github.com:rupa/z.git
cd -
fi
if command -v tmux > /dev/null; then
printf "" #do nothing
else
echo "==================="
echo "= Installing tmux ="
echo "==================="
echo "Enter sudo password for apt install tmux"
sudo apt install tmux
fi
if [ ! -d "$HOME/git/scripts" ]; then
echo "======================"
echo "= Installing scripts ="
echo "======================"
mkdir -p "$HOME/git/scripts"
git clone "git@github.com:evan1026/scripts.git" "$HOME/git/scripts"
fi
if [ ! -d "$HOME/git/docopts" ]; then
echo "======================"
echo "= Installing docopts ="
echo "======================"
mkdir -p "$HOME/git/docopts"
git clone "git@github.com:docopt/docopts.git" "$HOME/git/docopts"
last_dir="$(pwd)"
cd "$HOME/git/docopts"
./get_docopts.sh
cd "$last_dir"
fi
sudo apt install python3-pip
sudo -H pip3 install powerline-status
if [ ! -d "$HOME/git/diff-so-fancy" ]; then
echo "============================"
echo "= Installing diff-so-fancy ="
echo "============================"
mkdir -p "$HOME/git/diff-so-fancy"
git clone "git@github.com:so-fancy/diff-so-fancy" "$HOME/git/diff-so-fancy"
mkdir "$HOME/bin"
ln -s "$HOME/git/diff-so-fancy/diff-so-fancy" "$HOME/bin/diff-so-fancy"
fi
if [ ! -d "$HOME/.vim/bundle/Vundle.vim" ]; then
echo "====================="
echo "= Installing Vundle ="
echo "====================="
echo "Enter sudo password to install exuberant-ctags, cmake, clang, python dev headers, inconsolata font, and vim"
sudo apt install exuberant-ctags cmake clang python-dev python3-dev fonts-inconsolata vim neovim
git clone "https://github.com/VundleVim/Vundle.vim.git" "$HOME/.vim/bundle/Vundle.vim"
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'
"$(dirname "$0")/make_links.sh"
nvim +PlugInstall +qall
vim +PluginInstall +qall
$HOME/.vim/bundle/YouCompleteMe/install.py --clang-completer
fi
if [ -z "$(pip3 list | grep powerline-status)" ]; then
echo "========================"
echo "= Installing powerline ="
echo "========================"
sudo -H pip3 install powerline-status
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
sudo mv PowerlineSymbols.otf /usr/share/fonts/
sudo fc-cache -vf
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
fi