-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-oh-my-zsh.sh
executable file
·37 lines (28 loc) · 1.19 KB
/
install-oh-my-zsh.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
#!/bin/bash
cd `dirname "$0"`
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
FILES=("docker" "fzf" "helpers" "history" "tmux" "vim")
for file in "${FILES[@]}"; do
if [ -f "$HOME/.oh-my-zsh/custom/$file.zsh" ]; then
mv -v $HOME/.oh-my-zsh/custom/$file.zsh $HOME/.oh-my-zsh/custom/$file.zsh.old
fi
ln -sfv $PWD/oh_my_zsh/$file.zsh $HOME/.oh-my-zsh/custom/$file.zsh
done
mkdir -p $HOME/.oh-my-zsh/custom/themes
THEMES=("goozler")
for file in "${THEMES[@]}"; do
if [ -f "$HOME/.oh-my-zsh/custom/themes/$file.zsh-theme" ]; then
mv -v $HOME/.oh-my-zsh/custom/themes/$file.zsh-theme $HOME/.oh-my-zsh/custom/themes/$file.zsh-theme.old
fi
ln -sfv $PWD/oh_my_zsh/themes/$file.zsh-theme $HOME/.oh-my-zsh/custom/themes/$file.zsh-theme
done
mkdir -p $HOME/.oh-my-zsh/custom/zeroconfig
ln -sfv $PWD/oh_my_zsh/zeroconfig/zshrc $HOME/.oh-my-zsh/custom/zeroconfig/.zshrc
touch $HOME/.z
if [ -f "$HOME/.zshrc" ]; then
mv -v $HOME/.zshrc $HOME/.$file.zshrc
fi
ln -sfv $PWD/zshrc $HOME/.zshrc
# export ZPLUG_HOME=$HOME/.zplug
# git clone https://github.com/zplug/zplug $ZPLUG_HOME
# zsh -c 'source ~/.zplug/init.zsh; zplug check || zplug install'