update: sh: install script

This commit is contained in:
qwjyh 2022-10-12 10:26:59 +09:00
parent 05147b5aea
commit ef2d9a239d

View file

@ -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