Automatically update cargo-installed packages
This commit is contained in:
parent
99ce115d28
commit
4f373b4ddf
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,11 @@ apt_update() {
|
|||
sudo --reset-timestamp
|
||||
}
|
||||
|
||||
cargo_update() {
|
||||
# shellcheck disable=SC2046
|
||||
cargo install $(cargo install --list | grep '^[a-z0-9_-]\+ v[0-9.]\+:$' | cut --delimiter=' ' --fields=1)
|
||||
}
|
||||
|
||||
pipx_update() {
|
||||
for venv in $(pipx list --json | jq --raw-output ".venvs | keys[]")
|
||||
do
|
||||
|
|
@ -18,3 +23,4 @@ pipx_update() {
|
|||
apt_update
|
||||
pipx_update
|
||||
rustup update
|
||||
cargo_update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue