1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 12:48:01 +00:00

Add support for iTerm2 v3 in tab function

This commit is contained in:
Griffin Yourick 2017-04-10 14:23:49 -04:00 committed by Kaleb Elwert
parent 909006638d
commit e413ef5a97

View File

@ -39,3 +39,14 @@ EOF
end tell
EOF
}
[[ "$the_app" == 'iTerm2']] && {
osascript 2>/dev/null <<EOF
tell application "iTerm2"
tell current window
create tab with default profile
tell current session to write text "${command}"
end tell
end tell
EOF
}