Skip to content

Instantly share code, notes, and snippets.

@mesmacosta
Created July 18, 2020 20:31
Show Gist options
  • Select an option

  • Save mesmacosta/5db99c3697974e5f38f951bb6b9d2a3b to your computer and use it in GitHub Desktop.

Select an option

Save mesmacosta/5db99c3697974e5f38f951bb6b9d2a3b to your computer and use it in GitHub Desktop.
Set up tmux panes in Cloud Shell
You are going to configure three Cloud Shell panes so that you can issue commands in one pane and watch the effects on the two clusters in the other panes.
Split the session screen with the tmux utility built-into Cloud Shell by typing <Ctrl>+b, then %. You should see 2 panes in the Cloud Shell.
Dual tmux panes
Any time you interact with tmux, you'll start with the <Ctrl>+b combination, which signals a command to tmux.
Switch to the left-hand pane by typing:
<Ctrl>+b
<left-arrow>
Resize the left-hand pane by doing the following:
Type <Ctrl>+b to begin interaction with tmux
Type : to get a tmux command prompt
Type resize-pane -L 35 to make the left-hand pane narrower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment