ozsh/setup.sh

23 lines
366 B
Bash
Raw Normal View History

2021-02-21 05:44:59 +00:00
#!/bin/sh
2021-02-21 05:47:51 +00:00
set +xe
2021-02-21 05:44:59 +00:00
OZSH_HOME=$HOME/.ozsh
2021-02-21 05:55:10 +00:00
# remove garbage
rm -rf "$HOME/.oh-my-zsh"
2021-02-21 05:44:59 +00:00
# clone the repo
2021-02-21 05:50:54 +00:00
if [ ! -d "$OZSH_HOME" ]; then
git clone https://git.quacker.org/d/ozsh $OZSH_HOME/
fi
2021-02-21 05:44:59 +00:00
# pull submodules
2021-02-21 05:47:51 +00:00
git -C $OZSH_HOME submodule update --init --recursive
2021-02-21 05:44:59 +00:00
# link .zshrc
2021-02-21 05:55:10 +00:00
rm -f "$HOME/.zshrc"
rm -f "$HOME/.p10k.zsh"
2021-02-21 05:44:59 +00:00
ln -s $OZSH_HOME/.zshrc $HOME/.zshrc