Created
October 23, 2016 05:13
-
-
Save dbanetto/1af711c47c66a05d7bbb3cbb30f8e51e to your computer and use it in GitHub Desktop.
cargo command to update all installed executables
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
#!/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