mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Update session layout example
This commit is contained in:
@@ -6,13 +6,16 @@ session_root "~/Documents"
|
|||||||
# argument is given, session name will be based on layout file name.
|
# argument is given, session name will be based on layout file name.
|
||||||
if initialize_session "Example Session"; then
|
if initialize_session "Example Session"; then
|
||||||
|
|
||||||
# Example of loading an existing window layout.
|
# Create a new window inline within session layout definition.
|
||||||
load_window "example"
|
|
||||||
|
|
||||||
# Example of in-line window definition
|
|
||||||
new_window "In-line Window"
|
new_window "In-line Window"
|
||||||
tmux split-window -t "$session:$window.0" -v -p 50
|
tmux split-window -t "$session:$window.0" -v -p 50
|
||||||
|
|
||||||
|
# Load a defined window layout.
|
||||||
|
load_window "example"
|
||||||
|
|
||||||
|
# Select the default active window on session creation.
|
||||||
|
select_window 0
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Finalize session creation and switch/attach to it.
|
# Finalize session creation and switch/attach to it.
|
||||||
|
|||||||
Reference in New Issue
Block a user