Update setup script
This commit is contained in:
parent
8c696a7b6f
commit
35f3b784ad
19
setup.sh
Normal file → Executable file
19
setup.sh
Normal file → Executable file
@ -1,5 +1,20 @@
|
||||
#/usr/bin/env bash
|
||||
|
||||
# Setup script.
|
||||
git clone --recurse-submodules https://github.com/kreeger/zshrc.git $HOME/.zsh
|
||||
ln -sfv $HOME/.zsh/zshrc $HOME/.zshrc
|
||||
if [[ ! -d "$HOME/.zsh" ]]; then
|
||||
git clone --recurse-submodules https://github.com/kreeger/zshrc.git $HOME/.zsh
|
||||
fi
|
||||
|
||||
if [[ ! -a "$HOME/.zshrc" ]]; then
|
||||
ln -sfv $HOME/.zsh/zshrc $HOME/.zshrc
|
||||
fi
|
||||
|
||||
# Link dotfiles.
|
||||
declare -a dotfiles=("gemrc" "gitconfig" "gitignore.global")
|
||||
|
||||
for file in "${dotfiles[@]}"
|
||||
do
|
||||
if [[ ! -a "$HOME/.$file" ]]; then
|
||||
ln -sfv $HOME/.dotfiles/.$file $HOME/.$file
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user