Skip to content

Instantly share code, notes, and snippets.

@dbanetto
Created October 23, 2016 05:13
Show Gist options
  • Save dbanetto/1af711c47c66a05d7bbb3cbb30f8e51e to your computer and use it in GitHub Desktop.
Save dbanetto/1af711c47c66a05d7bbb3cbb30f8e51e to your computer and use it in GitHub Desktop.
cargo command to update all installed executables
#!/bin/sh
cargo install --list | grep ':$' | sed 's/\(^.*\)\s.*/\1/' | xargs -t -I _ cargo install _
# install script into $PATH
# use via `cargo binupdate`
# also accepts `cargo binupdate --force`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment