dotfiles/bin/install.sh

25 lines
817 B
Bash
Raw Normal View History

2022-10-12 10:26:59 +09:00
#!/usr/bin/bash
set -eu
2022-10-07 04:03:34 +09:00
2022-10-12 10:26:59 +09:00
# =========================================================
# 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
2022-10-07 04:03:34 +09:00
2022-10-12 10:26:59 +09:00
# =========================================================
# links
# =========================================================
2022-10-17 20:18:35 +09:00
mkdir -p ~/.config/fish
2022-10-12 11:21:48 +09:00
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
2022-10-12 10:26:59 +09:00
2022-10-17 20:18:35 +09:00
mkdir -p ~/.config/nvim
ln -sf $(pwd)/dotfiles/neovim/init.lua ~/.config/nvim/init.lua
2022-10-17 20:18:35 +09:00
ln -sf $(pwd)/dotfiles/neovim/lua/plugins.lua ~/.config/nvim/lua/plugins.lua