Skip to content

Instantly share code, notes, and snippets.

@oliverguenther
Created September 6, 2017 13:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverguenther/cac7a519b1f6cfff69479e40fbd58742 to your computer and use it in GitHub Desktop.
Save oliverguenther/cac7a519b1f6cfff69479e40fbd58742 to your computer and use it in GitHub Desktop.
iTerm2 Semantic history for IntelliJ / idea
#!/bin/bash
name=$1
line=$2
file "${name}" | grep -q "text"
if [ $? -ne 0 ]; then
/usr/bin/open ${name}
else
/usr/local/bin/idea --line ${line:-1} ${name}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment