fix update
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
is_installed() {
|
||||
[ -d "$HOME/.tmux/plugins/tpm" ]
|
||||
}
|
||||
|
||||
run_update() {
|
||||
echo "Updating TPM and tmux plugins..."
|
||||
local failed=0
|
||||
for plugin in "$HOME/.tmux/plugins/"*/; do
|
||||
[ -d "$plugin/.git" ] || continue
|
||||
echo " $(basename "$plugin")"
|
||||
git -C "$plugin" pull --ff-only --quiet || failed=1
|
||||
done
|
||||
return $failed
|
||||
}
|
||||
Reference in New Issue
Block a user