Skip to content

Instantly share code, notes, and snippets.

@igormp
Created April 15, 2018 05:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igormp/1bb67e69be5fadcb04d3d08f6fbce3bb to your computer and use it in GitHub Desktop.
Save igormp/1bb67e69be5fadcb04d3d08f6fbce3bb to your computer and use it in GitHub Desktop.
Runs rustup update after each pacman -Syu
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Updating rust components...
When = PostTransaction
Depends = rustup
# Be sure to replace $INSERTYOURUSERHERE the actual name of the current user whose toolchain should be updated
Exec = /bin/sh -c "RUSTUP_HOME='/home/$INSERTYOURUSERHERE/.rustup' /bin/rustup update"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment