Skip to content

Commit

Permalink
docs: tmux split screen example
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 24, 2024
1 parent af7cd24 commit aa154f8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/split/split.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions examples/split/split.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Output split.gif

Require tmux

Hide
Type "tmux -f /dev/null -L test new-session -- bash" Enter
Type "tmux split-window -d -h -- bash && \" Enter
Type "tmux set status && \" Enter
Type 'tmux setw pane-border-style "fg=0" && \' Enter
Type 'tmux setw pane-active-border-style "fg=0"' Enter
Sleep 0.5
Ctrl+L
Sleep 1
Show
Type "Window 1"
Sleep 1
# tmux bind to switch to next pane
Ctrl+B
Type o
Sleep 1
Type "Window 2"
Sleep 1

0 comments on commit aa154f8

Please sign in to comment.