-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap
executable file
·86 lines (70 loc) · 1.73 KB
/
bootstrap
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
#!/bin/bash
set -e
echo "==================="
echo "Running Brew Bundle"
brew bundle
echo "Brew Bundle done"
echo "==================="
echo ""
echo "==================="
echo "Copying DefaultKeyBinding.dict bash"
mkdir ~/Library/KeyBindings/DefaultKeyBinding.dict
cp DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
echo "Copy done"
echo "==================="
echo ""
echo "==================="
echo "Running stow bash"
stow bash
echo "Stow stash done"
echo "==================="
echo ""
echo "==================="
echo "Running stow ssh"
if [ $(uname) == "Darwin" ]; then
cp ssh/.ssh/mac_config ssh/.ssh/config
else
cp ssh/.ssh/linux_config ssh/.ssh/config
fi
stow ssh
echo "Stow ssh done"
echo "==================="
echo ""
echo "==================="
echo "Running stow tmux"
stow tmux
echo "Stow tmux done"
echo "==================="
echo ""
echo "==================="
echo "Running stow emacs"
stow emacs
echo "Stow emacs done"
echo "==================="
echo ""
echo "==================="
echo "Running stow pylint"
stow pylint
echo "Stow pylint done"
echo "==================="
echo ""
echo "==================="
echo "Running stow git"
cp git/.gitconfig.tmpl git/.gitconfig
stow git
if [ $(hostname) == "nayefmacbook" ] || [ $(uname) != "Darwin" ]; then
git config --global user.email "[email protected]"
else
git config --global user.email "[email protected]"
fi
echo "Stow git done"
echo "==================="
if [ $(uname) == "Darwin" ]; then
echo ""
echo "==================="
echo "Copying ipdb helper script"
echo -e '#!/bin/bash\nipython -c "%run -d $@"' > /usr/local/bin/ipdb
chmod 755 /usr/local/bin/ipdb
echo "Copying ipdb helper done"
echo "==================="
fi