Skip to content

Commit 38932bf

Browse files
committed
Fix issue where EDITOR contains flags
1 parent 2aa549f commit 38932bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libexec/tmuxifier-edit-session

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then
3838
fi
3939

4040
if [ -n "$EDITOR" ]; then
41-
exec "$EDITOR" "$layout_file"
41+
exec $EDITOR "$layout_file"
4242
else
4343
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
4444
echo "$layout_file"

libexec/tmuxifier-edit-window

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then
3838
fi
3939

4040
if [ -n "$EDITOR" ]; then
41-
exec "$EDITOR" "$layout_file"
41+
exec $EDITOR "$layout_file"
4242
else
4343
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
4444
echo "$layout_file"

libexec/tmuxifier-new-session

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ content="$(cat "$template")"
4747
echo "${content//\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file"
4848

4949
if [ -n "$EDITOR" ]; then
50-
exec "$EDITOR" "$layout_file"
50+
exec $EDITOR "$layout_file"
5151
else
5252
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
5353
echo "manually open the layout for editing:"

libexec/tmuxifier-new-window

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ content="$(cat "$template")"
4747
echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
4848

4949
if [ -n "$EDITOR" ]; then
50-
exec "$EDITOR" "$layout_file"
50+
exec $EDITOR "$layout_file"
5151
else
5252
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
5353
echo "manually open the layout for editing:"

0 commit comments

Comments
 (0)