-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·58 lines (46 loc) · 1.55 KB
/
setup.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
#!/bin/bash
REPO=~/kidchenko/dotfiles
# DOTFILES_DIR=${DOTFILES_DIR:-~/.${REPO}}
DOTFILES_DIR=~/.kidchenko/dotfiles
copyProfile() {
echo "Copying profile files."
# cp ./tools/update.sh ~/.kidchenko/dotfiles/tools/update.sh
cp $DOTFILES_DIR/.zshrc ~/.zshrc
cp $DOTFILES_DIR/.zlogin ~/.zlogin
cp $DOTFILES_DIR/.aliases ~/.aliases
cp $DOTFILES_DIR/.exports ~/.exports
cp $DOTFILES_DIR/.functions ~/.functions
cp $DOTFILES_DIR/.gitconfig ~/.gitconfig
cp $DOTFILES_DIR/.gvimrc ~/.gvimrc
cp $DOTFILES_DIR/.hyper.js ~/.hyper.js
cp $DOTFILES_DIR/.tmux.conf ~/.tmux.conf
cp $DOTFILES_DIR/.vimrc ~/.vimrc
cp $DOTFILES_DIR/brew.sh ~/brew.sh
echo
}
ensureFolders() {
[[ ! -s ~/lambda3 ]] && echo "~/lambda3 folder does not exist. Creating..." && mkdir ~/lambda3
echo
[[ ! -s ~/jetabroad ]] && echo "~/jetabroad folder does not exist. Creating..." && mkdir ~/jetabroad
echo
[[ ! -s ~/thoughtworks ]] && echo "~/thoughtworks folder does not exist. Creating..." && mkdir ~/thoughtworks
echo
[[ ! -s ~/sevenpeaks ]] && echo "~/sevenpeaks folder does not exist. Creating..." && mkdir ~/sevenpeaks
echo
[[ ! -s ~/isho ]] && echo "~/isho folder does not exist. Creating..." && mkdir ~/isho
echo
[[ ! -s ~/kidchenko ]] && echo "~/kidchenko folder does not exist. Creating..." && mkdir ~/kidchenko
echo
}
reloadProfile() {
echo "Reloading: ${SHELL}."
echo "Loading user profile: ~/.zshrc"
echo
exec ${SHELL} -l
}
main() {
copyProfile
ensureFolders
reloadProfile
}
main