install: replace symlinks correctly

This commit is contained in:
Charles Gould 2022-09-26 15:08:01 -04:00
parent fd9ad6a031
commit d5f29f7d9f

View File

@ -20,12 +20,15 @@ backup_existing "$HOME/.config/nix"
backup_existing "$HOME/.config/nvim"
backup_existing "$HOME/.config/sbt"
# Create config directory if not present
mkdir -p "$HOME/.config"
# Create symlinks, forcing updates
ln -fsv "$ROOTDIR/bash/.bashrc" "$HOME/.bashrc" # Bash does not support XDG config
ln -fsv "$ROOTDIR/fish" "$HOME/.config"
ln -fsv "$ROOTDIR/git" "$HOME/.config"
ln -fsv "$ROOTDIR/nix" "$HOME/.config"
ln -fsv "$ROOTDIR/nvim" "$HOME/.config"
ln -fsv "$ROOTDIR/sbt" "$HOME/.config"
ln -fnsv "$ROOTDIR/bash/.bashrc" "$HOME/.bashrc" # Bash does not support XDG config
ln -fnsv "$ROOTDIR/fish" "$HOME/.config/fish"
ln -fnsv "$ROOTDIR/git" "$HOME/.config/git"
ln -fnsv "$ROOTDIR/nix" "$HOME/.config/nix"
ln -fnsv "$ROOTDIR/nvim" "$HOME/.config/nvim"
ln -fnsv "$ROOTDIR/sbt" "$HOME/.config/sbt"
echo