-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup
More file actions
executable file
·31 lines (26 loc) · 754 Bytes
/
setup
File metadata and controls
executable file
·31 lines (26 loc) · 754 Bytes
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
#!/usr/bin/env bash
# Make an operating system ready for development.
./create-symlinks
[ -e ~/.profile ] && source ~/.profile
[ -e ~/.bash_profile ] && source ~/.bash_profile
cd this/setup
./create-key-pair
./upload-public-key-to-github
# Introduce myself to git.
if [ -e ~/.gitconfig ]; then
echo "~/.gitconfig already exists. Not copying: this/dotfiles/gitconfig"
else
cp -i ../dotfiles/gitconfig ~/.gitconfig
sensible-editor ~/.gitconfig
fi
# Some operating systems want you to be root.
if [ $(uname -s) = "Darwin" ]; then
./install-essentials
else
sudo ./install-essentials
fi
# Some install scripts want you to be you (not root).
./install-git-completion
./install-git-remote-hg
./install-rvm
[ -x tweak-ui ] && ./tweak-ui