Last active
December 27, 2025 02:31
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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