mirror of
https://github.com/tmux-plugins/tpm.git
synced 2025-09-14 00:46:56 +00:00
Enable updating plugins via cli executable
This commit is contained in:
16
scripts/update_plugin_prompt_handler.sh
Executable file
16
scripts/update_plugin_prompt_handler.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
if [ $# -eq 0]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
source "$CURRENT_DIR/shared_functions.sh"
|
||||
|
||||
main() {
|
||||
"$CURRENT_DIR/update_plugin.sh" --tmux-echo "$*"
|
||||
reload_tmux_environment
|
||||
end_message
|
||||
}
|
||||
main "$*"
|
Reference in New Issue
Block a user