3 ms·
I basically do the same but use `stow` and a `~/.dotfiles` repo. ~/.dotfiles/ fish/ .config/fish/... neovim/ .config/nvim/... l
by folkrav 5y ago
I basically do the same but use `stow` and a `~/.dotfiles` repo.
~/.dotfiles/
fish/
.config/fish/...
neovim/
.config/nvim/...
link.sh
link.sh
#!/usr/bin/env bash
ARGS=$@
DEFAULT_DIRS=$(echo */)
DIRS_TO_STOW=${ARGS:=$DEFAULT_DIRS}
for dir_name in $DIRS_TO_STOW; do
echo "Linking $dir_name..."
stow --restow --no-folding $dir_name
done
I then run `./link.sh` to re-create symlinks for everything or `./link.sh foo bar` to re-link some in particular.