mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 07:49:57 +00:00
Restrict tmux and desktop tools to Void hosts
This commit is contained in:
14
dotfiles/desktop/.tmux/plugins/tmux-resurrect/scripts/restore.exp
Executable file
14
dotfiles/desktop/.tmux/plugins/tmux-resurrect/scripts/restore.exp
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env expect
|
||||
|
||||
# start tmux
|
||||
spawn tmux -S/tmp/foo
|
||||
|
||||
# delay with sleep to compensate for tmux starting time
|
||||
sleep 2
|
||||
|
||||
# run restore script directly
|
||||
send "~/.tmux/plugins/tmux-resurrect/scripts/restore.sh\r"
|
||||
|
||||
# long wait until tmux restore is complete
|
||||
# (things get messed up if expect client isn't attached)
|
||||
sleep 100
|
||||
Reference in New Issue
Block a user