mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Explicitly execute fzf command with bash -c; not doing this will break on any non-posix compatible shell
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user