LoginSignup
8
8

More than 5 years have passed since last update.

oh-my-zsh の osx プラグインを使ってみよう

Posted at

oh-my-zsh に osx というプラグインがあるのですが、なんでしょうコレ。
調べてみると、お茶目な機能があったので共有します。

oh-my-zsh https://github.com/robbyrussell/oh-my-zsh を導入した後、.zshrc でプラグインを設定します。

.zshrc
plugins=(osx)

タブ操作系

新しいタブを開きます。
ショートカットがあれば事足りるような気もしますが

$ tab

さらに iTerm2 のみ、タブを分割したりできます

$ split_tab  #上下に分割
$ vsplit_tab #左右に分割

Finder 連携

$ cdf
$ pushdf

cd, pushd に f をつけて、Finder で開いているディレクトリに移動ができます。

$ pfd
/Applications/

print finder directory でしょうか、Finder で開いているディレクトリを表示します。

$ pfs
/Applications/Atom.app/
/Applications/FaceTime.app/
/Applications/Firefox.app/

Finder で選択中のファイルなどを表示します。複数選択しているとこのようになります。

iTunes 連携

$ itunes launch|play|pause|stop|rewind|resume|quit

iTunes を操作できるようです。
マクロや自作コマンドラインツールと合わせて使うと楽しいかも知れません。

8
8
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
8
8