-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·58 lines (54 loc) · 1.51 KB
/
install.sh
File metadata and controls
executable file
·58 lines (54 loc) · 1.51 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
#!/bin/bash
if [ "$1" = "docker" ]
then
echo "installing in container"
else
echo "NOT installing in container"
sudo apt-get update -y
sudo apt-get install terminator gitg -y
fi
if [ "$1" = "docker" ]
then
apt install -y \
vim \
git \
tree \
thefuck \
tmux \
curl
else
sudo apt install -y \
vim \
git \
tree \
thefuck \
tmux \
curl
fi
if [ "$1" = "docker" ]
then
curl https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o /usr/bin/diff-so-fancy
else
sudo curl https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o /usr/bin/diff-so-fancy
fi
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
if [ "$1" = "docker" ]
then
git clone https://github.com/VundleVim/Vundle.vim.git /root/.vim/bundle/Vundle.vim
git clone --depth=1 https://github.com/Bash-it/bash-it.git /root/.bash_it
/root/.bash_it/install.sh --silent
sed -i 's/bobby/sexy/g' /root/.bashrc
vim -c 'PluginInstall' -c 'qa!'
vim -c 'PlugInstall' -c 'qa!'
cat .bashrc_temp >> /root/.bashrc
rm .bashrc_temp
else
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh --silent
cp -r .tmux.conf .vim .vimrc .viminfo ~/
sed -i 's/bobby/sexy/g' ~/.bashrc
vim -c 'PluginInstall' -c 'qa!'
vim -c 'PlugInstall' -c 'qa!'
cat .bashrc >> ~/.bashrc
fi