-1

There is a file showing on iTerm2 screen as below

test.txt 

I want to open working directory of this file using iTerm2. But ⌘-click only opens files but not its working directory on Finder. I do not find any keys or method from iTerm2 to get this.

Jack
  • 1,724
  • 4
  • 18
  • 33

2 Answers2

3

You can install bash/zsh themes(depending on what shell you use) that show the current directory in the shell prompt. You can then ⌘-click on that.

pixie999
  • 468
  • 5
  • 11
1

You can simply exec open . It will open the finder from the current directory

Martin Choraine
  • 2,296
  • 3
  • 20
  • 37