mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Add "new" and "edit" commands
This commit is contained in:
16
templates/session.sh
Normal file
16
templates/session.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# Set custom session name. Default is based on filename.
|
||||
# session_name "Example Session"
|
||||
|
||||
# Set a custom session root. Default is `$HOME`.
|
||||
# session_root "~/Projects/example"
|
||||
|
||||
# Create session if it does not already exist.
|
||||
if initialize_session; then
|
||||
|
||||
# Load window layouts if session was created.
|
||||
# load_window "example"
|
||||
|
||||
fi
|
||||
|
||||
# Finalize session creation and switch/attach to it.
|
||||
finalize_and_go_to_session
|
||||
14
templates/window.sh
Normal file
14
templates/window.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
# Set custom window name. Default is based on filename.
|
||||
# window_name "Example Window"
|
||||
|
||||
# Set a window root path. Default is `$session_root`.
|
||||
# window_root "~/Projects/example"
|
||||
|
||||
# Create new window. Remove if you want to apply layout to current window.
|
||||
tmux new-window -t "$session" -n "$window"
|
||||
|
||||
# Split window into panes.
|
||||
# tmux split-window -t "$session:$window.0" -h -p 20
|
||||
|
||||
# Set active pane.
|
||||
# tmux select-pane -t "$session:$window.0"
|
||||
Reference in New Issue
Block a user