From ef2d9a239d70b0d711020cb451870bf112253e2a Mon Sep 17 00:00:00 2001 From: qwjyh Date: Wed, 12 Oct 2022 10:26:59 +0900 Subject: [PATCH] update: sh: install script --- bin/install.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/bin/install.sh b/bin/install.sh index cabc0ff..6870622 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -1 +1,22 @@ -ln -s (pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish +#!/usr/bin/bash +set -eu + +# ========================================================= +# check executing location +# ========================================================= +if [ ! -d "bin" -a ! -d "dotfiles" ]; then + echo "Wrong execution location" + echo "Please run this script on dotfiles root folder." + exit 1 +fi + + +# ========================================================= +# links +# ========================================================= +ln -sf (pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish +ln -sf (pwd)/dotfiles/starship/starship.toml ~/.config/starship.toml +ln -sf (pwd)/dotfiles/tmux.conf ~/.tmux.conf + + +ln -sf (pwd)/dotfiles/nvim/init.lua ~/.config/nvim/init.lua