Clean things up a bit
This commit is contained in:
parent
9fe124cc93
commit
125434d557
18
setup.sh
18
setup.sh
@ -1,15 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Setup script.
|
||||
if [[ ! -d "$HOME/.zsh" ]]; then
|
||||
git clone --recurse-submodules https://git.kree.gr/kreeger/zshrc.git $HOME/.zsh
|
||||
ln -sfv $HOME/.zsh/zshrc $HOME/.zshrc
|
||||
fi
|
||||
|
||||
# Make sure $HOME/.config exists. It should, if we've been cloned there!
|
||||
if [[ ! -d "$HOME/.config" ]]; then
|
||||
mkdir -p $HOME/.config
|
||||
fi
|
||||
|
||||
# Clone ZSH configs.
|
||||
if [[ ! -d "$HOME/.config/zsh" ]]; then
|
||||
git clone --recurse-submodules https://git.kree.gr/kreeger/zshrc.git $HOME/.config/zsh
|
||||
fi
|
||||
|
||||
if [[ ! -a "$HOME/.zshrc" ]]; then
|
||||
ln -sfv $HOME/.config/zsh/zshrc $HOME/.zshrc
|
||||
fi
|
||||
|
||||
# Clone nvim configs.
|
||||
if [[ ! -d "$HOME/.config/nvim" ]]; then
|
||||
git clone --recurse-submodules https://git.kree.gr/kreeger/nvimrc.git $HOME/.config/nvim
|
||||
@ -29,6 +33,6 @@ SCRIPTPATH=$(dirname "$SCRIPT")
|
||||
for file in "${dotfiles[@]}"
|
||||
do
|
||||
if [[ ! -a "$HOME/.$file" ]]; then
|
||||
ln -sfv $SCRIPTPATH/.$file $HOME/.$file
|
||||
ln -sfv $SCRIPTPATH/$file $HOME/.$file
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user