-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command line script that fully restores tmux environment
- Loading branch information
Bruno Sutic
committed
Sep 24, 2014
1 parent
ec9f68c
commit a7fe9dc
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |