Skip to content

Instantly share code, notes, and snippets.

@cicorias
Last active December 27, 2025 02:31
Show Gist options
  • Select an option

  • Save cicorias/965cd0ea4521e563319509024170460f to your computer and use it in GitHub Desktop.

Select an option

Save cicorias/965cd0ea4521e563319509024170460f to your computer and use it in GitHub Desktop.
update vs code direct from aur instead of omarchy mirror stable which is latent
#!/usr/bin/env bash
# use this after a 'yay -S aur/visual-studio-code-bin' on omarchy / arch linux
# add to /etc/pacman.conf a "IgnorePkg = visual-studio-code-bin" as wel
set -euo pipefail
PKG="visual-studio-code-bin"
current_ver() {
pacman -Qi "$PKG" 2>/dev/null | awk -F': ' '$1=="Version"{print $2}'
}
echo "Current installed version: $(current_ver || echo "not installed")"
echo "Updating from AUR..."
yay -S --needed --noconfirm "aur/$PKG"
echo "Updated installed version: $(current_ver)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment