Created
September 6, 2017 13:33
-
-
Save oliverguenther/cac7a519b1f6cfff69479e40fbd58742 to your computer and use it in GitHub Desktop.
iTerm2 Semantic history for IntelliJ / idea
This file contains hidden or 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/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