update: sh: install script
This commit is contained in:
parent
05147b5aea
commit
ef2d9a239d
1 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue