From 7354fd135614364acd08f922ccf45add0ee3ef41 Mon Sep 17 00:00:00 2001 From: Kyle Holzinger Date: Thu, 5 Oct 2017 11:17:40 -0400 Subject: [PATCH] Explicitly execute fzf command with `bash -c`; not doing this will break on any non-posix compatible shell --- On-MacVim-with-iTerm2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/On-MacVim-with-iTerm2.md b/On-MacVim-with-iTerm2.md index 3f53902..b73f4a3 100644 --- a/On-MacVim-with-iTerm2.md +++ b/On-MacVim-with-iTerm2.md @@ -11,7 +11,7 @@ The Applescript API for iTerm2 has changed with version 3.0. This updated script # update for iterm2 3.0+ osascript -e \ -'on run argv +$'on run argv tell application "System Events" set old_frontmost to item 1 of (get name of processes whose frontmost is true) end tell @@ -22,7 +22,7 @@ osascript -e \ end tell current session of myterm write text "cd " & quoted form of (item 2 of argv) - write text (item 1 of argv) & " && exit" + write text "bash -c \'" & (item 1 of argv) & " && exit\'" end tell repeat while (exists myterm) delay 0.1