-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-mac.sh
More file actions
executable file
·38 lines (25 loc) · 831 Bytes
/
Copy pathinit-mac.sh
File metadata and controls
executable file
·38 lines (25 loc) · 831 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
32
33
34
35
36
37
#!/usr/bin/env bash
CONFIG_DIR="$HOME/.jsep-config"
# Clone the config repo
git clone git@github.com:jsep/dotfiles.git ${CONFIG_DIR}
source $CONFIG_DIR/log.sh
log "Config repo clone"
cd ${CONFIG_DIR}
# Link custom .shrc configurations
# ln .bashrc >> ~/.bashrc
log "Link .zshrc config"
export ZSH=$HOME/.oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
log "Oh My Zsh installed"
[ -f ~/.zshrc ] && mv ~/.zshrc ~/.zhsrc.old
ln -s $CONFIG_DIR/.zshrc ~/.zshrc
[ -f ~/.vimrc ] && mv ~/.vimrc ~/.vimrc.old
ln -s $CONFIG_DIR/.vimrc ~/.vimrc
[ -f ~/.ideavimrc ] && mv ~/.ideavimrc ~/.ideavimrc.old
ln -s $CONFIG_DIR/.ideavimrc ~/.ideavimrc
log "Link rc files"
source $CONFIG_DIR/git-config.sh
log "All tools installed"
# Create repos dir
mkdir -p ~/repos
log "repos dir created"