-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinstall.sh
executable file
·88 lines (49 loc) · 1.94 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
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
86
87
88
#!/bin/bash
###############################################################################
# NOTE: Must be run in the dotfiles directory
###############################################################################
# Fail if any step fails
set -e;
# Turn parts of the setup script on and off
CONFIGURE_GIT=true
CONFIGURE_BASH=true
CONFIGURE_MOTD=true
CONFIGURE_TMUX=true
CONFIGURE_VIM=true
###############################################################################
# Configure Git
###############################################################################
if $CONFIGURE_GIT; then
cat .gitconfig >> ~/.gitconfig
fi # $CONFIGURE_GIT
###############################################################################
# Configure Bash
###############################################################################
if $CONFIGURE_BASH; then
cat .bashrc >> ~/.bashrc
cat .bash_profile >> ~/.bash_profile
fi # $CONFIGURE_BASH
###############################################################################
# Configure MOTD
###############################################################################
if $CONFIGURE_MOTD; then
cat motd | sudo tee --append /etc/motd > /dev/null
fi # $CONFIGURE_MOTD
###############################################################################
# Configure tmux
###############################################################################
if $CONFIGURE_TMUX; then
cat .tmux.conf >> ~/.tmux.conf
fi # $CONFIGURE_TMUX
###############################################################################
# Configure Vim
###############################################################################
if $CONFIGURE_VIM; then
cat .vimrc >> ~/.vimrc
fi # $CONFIGURE_VIM
###############################################################################
# Configure GDB
###############################################################################
if $CONFIGURE_GDB; then
cat .gdbinit >> ~/.gdbinit
fi # $CONFIGURE_GDB