openp Just shows open panel GUI to select directory/file, which may fulfills interactive selection in script. Installation $ brew tap watr/formulae ... $ brew install openp Usage $ diff "`openp`" "`openp`"