aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/setup.sh b/setup.sh
index d4d8cf1..dd68908 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,12 +1,17 @@
-#!/bin/sh
+#!/bin/bash
-for name in .gitconfig .vim .vimrc .zshrc
-do
- ln -s -f ~/dotfiles/$name ~/$name
+for name in .gitconfig .vim .vimrc .zshrc; do
+ if [ ! -L ~/$name ]; then
+ ln -s -f ~/dotfiles/$name ~/$name
+ fi
done
-[ -d ~/.config ] || mkdir ~/.config
-for name in alacritty git starship.toml
-do
- ln -s -f ~/dotfiles/.config/$name ~/.config/$name
+if [ ! -d ~/.config ]; then
+ mkdir ~/.config
+fi
+
+for name in alacritty fish git starship.toml; do
+ if [ ! -L ~/.config/$name ]; then
+ ln -s -f ~/dotfiles/.config/$name ~/.config/$name
+ fi
done