-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·29 lines (22 loc) · 952 Bytes
/
install.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
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source "$DIR/util/symlink_files.sh"
# get them home first
cd $HOME
[ -d '.dotfiles' ] || git clone git@github.com:jondkinney/dotfiles.git .dotfiles
symlink_files "$(pwd)/.dotfiles/files" $HOME
ln -vnsf $HOME/.dotfiles/zsh_conf/custom/j2fly_shortcuts.zsh $HOME/.oh-my-zsh/custom
ln -vnsf $HOME/.dotfiles/zsh_conf/j2fly.zsh-theme $HOME/.oh-my-zsh/themes
ln -vnsf $HOME/.dotfiles/scripts/pair /usr/local/bin
ln -vnsf $HOME/.dotfiles/files/karabiner.json $HOME/.config/karabiner
# echo $1 # full_name
# echo $2 # email
sed -i '' "s/full_name/$1/g" $HOME/.gitconfig_private
sed -i '' "s/email_address/$2/g" $HOME/.gitconfig_private
echo 'Successfully Installed'
echo ' ____ __ _____ __'
echo ' / __ \____ / /_/ __(_) /___ _____'
echo ' / / / / __ \/ __/ /_/ / // _ \/ ___/'
echo ' / /_/ / /_/ / /_/ __/ / // __(__ )'
echo '/_____/\____/\__/_/ /_/_/ \___/____/'
echo