Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Semantic history command for iTerm2 and Sublime Text 3. In iTerm's Preferences > Profiles > Default > Advanced > Semantic History, choose "Run command..." and enter "/your/path/to/iterm_open_with \1 \2".
file "$1" | grep -q "text"
if [ $? -ne 0 ]; then
/usr/bin/open $1
/Applications/Sublime\ $1:$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment