aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-05-31 00:57:13 +0900
committernsfisis <nsfisis@gmail.com>2021-05-31 00:57:13 +0900
commit77db37d3506edd006c0d4edc8b216d869a06f30b (patch)
tree6cc6cb455ad32244c89002abc4fb54cb2d70af81 /setup.sh
parent98be04b9ddb9ce3b0a8c41c74cb57460f1d872eb (diff)
downloaddotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.gz
dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.tar.zst
dotfiles-77db37d3506edd006c0d4edc8b216d869a06f30b.zip
fish shell
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