diff --git a/install/install-symlinks.sh b/install/install-symlinks.sh index e544f8f..a16c607 100755 --- a/install/install-symlinks.sh +++ b/install/install-symlinks.sh @@ -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