Replace all occurrences of window and session name placeholders in templates

This commit is contained in:
2012-04-25 22:53:40 +01:00
parent 66cec3a6ec
commit a8aaf43c72
2 changed files with 2 additions and 2 deletions

View File

@@ -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"