[MAC] Update and clean tmux/nvim plugins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
769166386c
commit
37ed5cad6d
2 files changed
+23
-9
No files matched your search
+22
-8
@@ -63,14 +63,6 @@ function update_others {
|
||||
echo "Update other stuff"
|
||||
echo "----------"
|
||||
|
||||
echo "-- ALACRITTY"
|
||||
"$SCRIPT_DIR/install_alacritty_mac.sh" || echo "Alacritty update failed." >&2
|
||||
|
||||
if [ -f "$HOME/.antidote/antidote.zsh" ]; then
|
||||
echo "-- ANTIDOTE"
|
||||
zsh "$HOME/.antidote/antidote.zsh" update
|
||||
fi
|
||||
|
||||
if [ -x "$(command -v claude)" ]; then
|
||||
echo "-- CLAUDE"
|
||||
claude --update
|
||||
@@ -86,6 +78,28 @@ function update_others {
|
||||
pi update
|
||||
pi update --extensions
|
||||
fi
|
||||
|
||||
echo "-- ALACRITTY"
|
||||
"$SCRIPT_DIR/install_alacritty_mac.sh" || echo "Alacritty update failed." >&2
|
||||
|
||||
if [ -f "$HOME/.antidote/antidote.zsh" ]; then
|
||||
echo "-- ANTIDOTE"
|
||||
zsh "$HOME/.antidote/antidote.zsh" update
|
||||
fi
|
||||
|
||||
if [ -x "$HOME/.tmux/plugins/tpm/bin/update_plugins" ]; then
|
||||
echo "-- TMUX PLUGINS"
|
||||
"$HOME/.tmux/plugins/tpm/bin/clean_plugins"
|
||||
"$HOME/.tmux/plugins/tpm/bin/update_plugins" all
|
||||
fi
|
||||
|
||||
if [ -x "$(command -v nvim)" ]; then
|
||||
echo "-- NVIM PLUGINS"
|
||||
# Headless vim-plug only logs to its buffer; print it
|
||||
nvim --headless -c 'PlugClean!' -c 'PlugUpgrade' -c 'PlugUpdate --sync' \
|
||||
-c 'lua io.write("\n", table.concat(vim.api.nvim_buf_get_lines(0, 0, -1, false), "\n"), "\n")' \
|
||||
-c 'qa'
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ $* == *--help* ]]; then
|
||||
|
||||
Reference in new issue
Block a user