Skip to content

luktom/OpenInTerminal

Repository files navigation

OpenInTerminal plugin

This is plugin for Intellij IDEA IDE. It's provide ability to open terminal with current file location by corresponding action in context menu (in editor and project view). You can also choose to open terminal in module directory instead of just parent directory of file.

Configuration

Before usage please set command and options for terminal app in plugin settings.

Linux:

  • Terminal command: gnome-terminal
  • Options: --working-directory

Windows:

  • Terminal command: cmd /C start cmd.exe /K
  • Options: cd /D

Windows (with babun or cygwin):

  • Terminal command: C:<USER-DIRECTORY>.babun\cygwin\bin\mintty.exe
  • Options: -i /Cygwin-Terminal.ico C:<USER-DIRECTORY>.babun\cygwin\bin\bash.exe -l -c "cd "$0" ; exec bash"

Mac OS:

  • Terminal command: open -a Terminal

If you are a Mac OS X user, please make sure that options mentioned in following post on StackOverflow are enabled.

For all above configurations directory path will be added at the end of full command. For example full command which will be executed on above Linux configuration will be following: gnome-terminal --working-directory "path_to_file_or_directory".