From 38932bf33e190792739467f82cc0d278dca5e3ef Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 21 Jul 2014 16:07:33 +0100 Subject: [PATCH] Fix issue where EDITOR contains flags --- libexec/tmuxifier-edit-session | 2 +- libexec/tmuxifier-edit-window | 2 +- libexec/tmuxifier-new-session | 2 +- libexec/tmuxifier-new-window | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libexec/tmuxifier-edit-session b/libexec/tmuxifier-edit-session index 00f9077..e0722d1 100755 --- a/libexec/tmuxifier-edit-session +++ b/libexec/tmuxifier-edit-session @@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then fi if [ -n "$EDITOR" ]; then - exec "$EDITOR" "$layout_file" + exec $EDITOR "$layout_file" else echo "'\$EDITOR' is not set. Please manually open the layout for editing:" echo "$layout_file" diff --git a/libexec/tmuxifier-edit-window b/libexec/tmuxifier-edit-window index 36d7e13..dee2986 100755 --- a/libexec/tmuxifier-edit-window +++ b/libexec/tmuxifier-edit-window @@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then fi if [ -n "$EDITOR" ]; then - exec "$EDITOR" "$layout_file" + exec $EDITOR "$layout_file" else echo "'\$EDITOR' is not set. Please manually open the layout for editing:" echo "$layout_file" diff --git a/libexec/tmuxifier-new-session b/libexec/tmuxifier-new-session index 6787f2f..c3ec25f 100755 --- a/libexec/tmuxifier-new-session +++ b/libexec/tmuxifier-new-session @@ -47,7 +47,7 @@ content="$(cat "$template")" echo "${content//\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file" if [ -n "$EDITOR" ]; then - exec "$EDITOR" "$layout_file" + exec $EDITOR "$layout_file" else echo "Layout file has been created, but '\$EDITOR' is not set. Please " echo "manually open the layout for editing:" diff --git a/libexec/tmuxifier-new-window b/libexec/tmuxifier-new-window index 726cd16..a9e35ef 100755 --- a/libexec/tmuxifier-new-window +++ b/libexec/tmuxifier-new-window @@ -47,7 +47,7 @@ content="$(cat "$template")" echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file" if [ -n "$EDITOR" ]; then - exec "$EDITOR" "$layout_file" + exec $EDITOR "$layout_file" else echo "Layout file has been created, but '\$EDITOR' is not set. Please " echo "manually open the layout for editing:"