mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
added optional window name
This commit is contained in:
@@ -144,11 +144,16 @@ window_root() {
|
||||
#
|
||||
# Arguments:
|
||||
# - $1: Name of window layout to load.
|
||||
# - $2: Override default window name.
|
||||
#
|
||||
load_window() {
|
||||
local file="$TMUXIFIER_LAYOUT_PATH/$1.window.sh"
|
||||
if [ -f "$file" ]; then
|
||||
window="$1"
|
||||
if [ $# -gt 1 ]; then
|
||||
window="$2"
|
||||
else
|
||||
window="$1"
|
||||
fi
|
||||
source "$file"
|
||||
window=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user