aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 3e659e324b63e0ebecd20f4e9fd32d77f4490d08 (plain)
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
#!/bin/bash

set -e

# template git profile
echo "enter your global git user name:"
read name
echo "enter your global git e-mail:"
read email

sed -e "s|#NAME#|$name|" -e "s|#EMAIL#|$email|" gitconfig.template > gitconfig

# deploy
for f in vimrc gvimrc gitconfig gitignore zshrc
do
    cp $f ~/.${f}
done

mkdir -p ~/.zsh
cp zsh/* ~/.zsh

mkdir -p ~/.vim
cp -r vim/* ~/.vim

# clean-up
rm gitconfig