Add session example and screenshot

This commit is contained in:
2012-04-22 17:46:11 +01:00
parent 54479c7bcf
commit e159af1f51
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Set custom session name. Default is based on filename.
session_name "Example Session"
# Set a custom session root. Default is `$HOME`.
session_root "~/Documents"
# Create session if it does not already exist.
if initialize_session; then
# Example of loading an existing window layout.
load_window "example"
# Example of in-line window definition
window_name "In-line Window"
tmux new-window -t "$session" -n "$window"
tmux split-window -t "$session:$window.0" -v -p 50
fi
# Finalize session creation and switch/attach to it.
finalize_and_go_to_session