aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-07 13:40:32 +0900
committernsfisis <nsfisis@gmail.com>2021-11-07 13:40:32 +0900
commitcb04994af33f9240539f434db5ef08f4a4df176a (patch)
treea27cfeed98f1783c78ed18a4e184bae154911950 /setup.sh
parentd89aa1b11b0a7c7068f6312b9cd5e3530182665e (diff)
downloaddotfiles-cb04994af33f9240539f434db5ef08f4a4df176a.tar.gz
dotfiles-cb04994af33f9240539f434db5ef08f4a4df176a.tar.zst
dotfiles-cb04994af33f9240539f434db5ef08f4a4df176a.zip
setup.sh: add messages
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/setup.sh b/setup.sh
index f2be5b5..6c82af6 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,17 +1,24 @@
#!/bin/bash
+echo "setup.sh"
+
for name in .gitconfig .tmux.conf .vim .vimrc .zshrc; do
- if [ ! -L ~/$name ]; then
- ln -s -f ~/dotfiles/$name ~/$name
+ if [ ! -L ~/"$name" ]; then
+ echo "* ln -s: ~/$name"
+ ln -s -f ~/dotfiles/"$name" ~/"$name"
fi
done
if [ ! -d ~/.config ]; then
+ echo "* mkdir: ~/.config"
mkdir ~/.config
fi
for name in alacritty bat git; do
- if [ ! -L ~/.config/$name ]; then
- ln -s -f ~/dotfiles/.config/$name ~/.config/$name
+ if [ ! -L ~/.config/"$name" ]; then
+ echo "* ln -s: ~/.config/$name"
+ ln -s -f ~/dotfiles/.config/"$name" ~/.config/"$name"
fi
done
+
+echo "done"