mirror of
https://github.com/tmux-plugins/tpm.git
synced 2026-11-01 08:20:18 +00:00
30 lines
498 B
Plaintext
30 lines
498 B
Plaintext
#!/usr/bin/env expect
|
|||
|
|
|
||
|
|
# disables script output
|
||
|
|
log_user 0
|
||
|
|
|
||
|
|
spawn tmux
|
||
|
|
|
||
|
|
# Waiting for tmux to attach. If this is not done, next command, `send` will
|
||
|
|
# not work properly.
|
||
|
|
sleep 1
|
||
|
|
|
||
|
|
# this is tmux prefix + U
|
||
|
|
send "Y"
|
||
|
|
|
||
|
|
set timeout 5
|
||
|
|
|
||
|
|
expect {
|
||
|
|
"Removing \"tmux-example-plugin\"" {
|
||
|
|
expect {
|
||
|
|
"\"tmux-example-plugin\" clean success" {
|
||
|
|
expect { "Done, press ENTER to continue." { exit 0 } }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
timeout {
|
||
|
|
puts "Plugin update prompt timeout";
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
}
|