mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Replace all occurrences of window and session name placeholders in templates
This commit is contained in:
@@ -25,7 +25,7 @@ if [ -f "$layout_file" ]; then
|
||||
fi
|
||||
|
||||
content="$(cat "$template")"
|
||||
echo "${content/\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file"
|
||||
echo "${content//\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file"
|
||||
|
||||
if [ ! -z "$EDITOR" ]; then
|
||||
exec "$EDITOR" "$layout_file"
|
||||
|
||||
@@ -25,7 +25,7 @@ if [ -f "$layout_file" ]; then
|
||||
fi
|
||||
|
||||
content="$(cat "$template")"
|
||||
echo "${content/\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
|
||||
echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
|
||||
|
||||
if [ ! -z "$EDITOR" ]; then
|
||||
exec "$EDITOR" "$layout_file"
|
||||
|
||||
Reference in New Issue
Block a user