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