Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Open iTerm bookmarks from the iTerm command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open iTerm bookmarks from the iTerm command line
Authored by: geolaw on May 28, '12 10:16:56AM

I am using iTerm2 - so the latest version adapted for iTerm2 is :


#!/bin/sh

arg=$1
me=`basename $0`
if [[ "$#" = "0" ]]; then
echo "Usage: '$me bookmarkname' or '$me list'" && exit 1
elif [[ "$1" = "list" ]]; then
defaults read com.googlecode.iterm2|grep " Name"|grep -v NSColorPicker|awk '{$1="";$2="";print $0}'|tr -d ';'
else
osascript <<ENDSCRIPT
tell application "iTerm 2"
activate
tell the current terminal
launch session "&#36;1"
end tell
end tell
ENDSCRIPT
fi



[ Reply to This | # ]