Implement startup sessions

This commit is contained in:
Kovid Goyal
2016-12-06 11:19:40 +05:30
parent 60513fcbab
commit 33d58fd7bc
5 changed files with 157 additions and 24 deletions

View File

@@ -52,6 +52,33 @@ By default kitty looks for a config file in the OS
config directory (usually `~/.config/kitty/kitty.conf` on linux) but you can pass
a specific path via the `--config` option.
Startup Sessions
-------------------
You can control the tabs, window layout, working directory, startup programs, etc. by creating a
"session" file and using the `--session` command line flag. For example:
```
# Set the window layout for the current tab
layout tall
# Set the working directory for the current tab
cd ~
# Create a window and run the specified command in it
launch zsh
launch vim
launch irssi --profile x
# Create a new tab
new_tab
cd ~/somewhere
# Set the layouts allowed in this tab
enabled_layouts tall, stack
layout stack
launch zsh
# Make the previous window the currently focused window
focus
launch emacs
```
Resources on terminal behavior
------------------------------------------