-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·55 lines (49 loc) · 1.01 KB
/
setup.sh
File metadata and controls
executable file
·55 lines (49 loc) · 1.01 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
#!/bin/bash
CURRENT_DIR=$(pwd)
DOTFILES_DIR=~/.dotfiles
OLD_DOTFILES=$DOTFILES_DIR/old
# List of dotfiles for home directory
FILES=''
FILES+=' .aliases'
FILES+=' .bash_profile'
FILES+=' .gitconfig'
FILES+=' .gitignore'
FILES+=' .tmux.conf'
FILES+=' .vimrc'
FILES+=' .zshrc'
echo
echo "Setting up workspace..."
mkdir -p ~/Workspace
mkdir -p $DOTFILES_DIR
echo "...done"
echo
echo
echo "Copying home directory dotfiles..."
# Create directory to house current dotfiles
# as a backup so you can restore your previous
# setup
if [ ! -e $OLD_DOTFILES ]; then
echo "Creating directory for current dotfiles: $OLD_DOTFILES..."
mkdir $OLD_DOTFILES
fi
for f in $FILES; do
if [ -e ~/$f ]; then
echo "Copying old ~/$f into $OLD_DOTFILES..."
cp ~/$f $OLD_DOTFILES/$f
fi
cp $CURRENT_DIR/$f ~/$f
done
echo "...done"
echo
echo
echo "Setting up dev tools..."
./scripts/tools.sh
echo "...done"
echo
echo
echo "Setting up language-specific environments..."
./scripts/elixir.sh
./scripts/node.sh
./scripts/go.sh
./scripts/ruby.sh
echo