mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03: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+
|
# update for iterm2 3.0+
|
||||||
osascript -e \
|
osascript -e \
|
||||||
'on run argv
|
$'on run argv
|
||||||
tell application "System Events"
|
tell application "System Events"
|
||||||
set old_frontmost to item 1 of (get name of processes whose frontmost is true)
|
set old_frontmost to item 1 of (get name of processes whose frontmost is true)
|
||||||
end tell
|
end tell
|
||||||
@@ -22,7 +22,7 @@ osascript -e \
|
|||||||
end
|
end
|
||||||
tell current session of myterm
|
tell current session of myterm
|
||||||
write text "cd " & quoted form of (item 2 of argv)
|
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
|
end tell
|
||||||
repeat while (exists myterm)
|
repeat while (exists myterm)
|
||||||
delay 0.1
|
delay 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user