mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Additionally, also fix a bug when creating a window, where as if the session name was the same as a window that already existed, it would fail, accidentally using the window rather than the session at a target.
19 lines
557 B
Bash
19 lines
557 B
Bash
# Set a custom session root path. Default is `$HOME`.
|
|
# Must be called before `initialize_session`.
|
|
#session_root "~/Projects/example"
|
|
|
|
# Create session with specified name if it does not already exist. If no
|
|
# argument is given, session name will be based on layout file name.
|
|
if initialize_session "{{SESSION_NAME}}"; then
|
|
|
|
# Create a new window inline within session layout definition.
|
|
#new_window "misc"
|
|
|
|
# Load a defined window layout.
|
|
#load_window "example"
|
|
|
|
fi
|
|
|
|
# Finalize session creation and switch/attach to it.
|
|
finalize_and_go_to_session
|