LoginSignup
3
3

More than 5 years have passed since last update.

IntelliJ や PhpStorm などの IDE付属ターミナルから iTerm を開く

Last updated at Posted at 2016-01-19

IDE付属のターミナルなどから iTerm を直接開きたいことがあります。

# カレントディレクトリ
iterm
iterm .

# 指定されたディレクトリ
iterm /path/to/openDirectory

引数を付けることで指定のパスに移動した状態でiTermを開くことが出来ます。
(省略時カレントディレクトリ)

## #editor ~/.zshrc
function iterm(){
 local openPath="./"
 local appPath="/path/to/iTerm.app"
 if [ $# != 0 ]; then
  openPath="$1"
 fi
 open -a $appPath $openPath
}
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3