Skip to content

Instantly share code, notes, and snippets.

View santo93hit's full-sized avatar

Santosh Kumar santo93hit

  • Ellucian
  • Bangalore, India
View GitHub Profile
@santo93hit
santo93hit / idea
Created April 29, 2021 18:10 — forked from chrisdarroch/idea
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`