Skip to content

Commit ca32056

Browse files
committed
Added an example for the pane-shell configuration.
1 parent cec24e5 commit ca32056

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

examples/pane-shell.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"session_name": "Pane shell example",
3+
"windows": [
4+
{
5+
"window_name": "first",
6+
"window_shell": "/usr/bin/python2",
7+
"layout": "even-vertical",
8+
"suppress_history": false,
9+
"options": {
10+
"remain-on-exit": true
11+
},
12+
"panes": [
13+
{
14+
"shell": "/usr/bin/python3",
15+
"shell_command": [
16+
"print('This is python 3')"
17+
]
18+
},
19+
{
20+
"shell": "/usr/bin/vim -u none",
21+
"shell_command": [
22+
"iAll panes have the `remain-on-exit` setting on.",
23+
"When you exit out of the shell or application, the panes will remain.",
24+
"Use tmux command `:kill-pane` to remove the pane.",
25+
"Use tmux command `:respawn-pane` to restart the shell in the pane.",
26+
"Use <Escape> and then `:q!` to get out of this vim window. :-)"
27+
]
28+
},
29+
{
30+
"shell_command": [
31+
"print('Hello World 2')"
32+
]
33+
},
34+
{
35+
"shell": "/usr/bin/top"
36+
}
37+
]
38+
}
39+
]
40+
}

examples/pane-shell.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
session_name: Pane shell example
2+
windows:
3+
- window_name: first
4+
window_shell: /usr/bin/python2
5+
layout: even-vertical
6+
suppress_history: false
7+
options:
8+
remain-on-exit: true
9+
panes:
10+
- shell: /usr/bin/python3
11+
shell_command:
12+
- print('This is python 3')
13+
- shell: /usr/bin/vim -u none
14+
shell_command:
15+
- iAll panes have the `remain-on-exit` setting on.
16+
- When you exit out of the shell or application, the panes will remain.
17+
- Use tmux command `:kill-pane` to remove the pane.
18+
- Use tmux command `:respawn-pane` to restart the shell in the pane.
19+
- Use <Escape> and then `:q!` to get out of this vim window. :-)
20+
- shell_command:
21+
- print('Hello World 2')
22+
- shell: /usr/bin/top

0 commit comments

Comments
 (0)