-
-
Save kergoth/430b625820dac071abcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
list-iterm2-profiles | fzf | tr '\n' '\0' | xargs -0 open-iterm2-profile | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmpfile="$(mktemp -t "${0##*/}.XXXXX")" | |
defaults export com.googlecode.iterm2 - >>"$tmpfile" | |
/usr/libexec/PlistBuddy -c 'Print "New Bookmarks"' "$tmpfile"|sed -n -e 's/ *Name = //p' | |
rm -f "$tmpfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
while read profile; do | |
set -- "$@" "$profile" | |
done | |
fi | |
for profile; do | |
osascript <<END | |
tell application "iTerm" | |
tell the current terminal | |
launch session "$profile" | |
end tell | |
end tell | |
END | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment