tmux
OS XでOh My Zshを使用しています。結合されたtmuxinator
セッションを出力するオートコンプリート関数を作成しようとしています。
私のオートコンプリート機能は次のようになります。
tmux-and-tmuxinator-sessions-autofill() {
reply=$( tmux-and-tmuxinator-sessions )
}
compctl -K tmux-and-tmuxinator-sessions-autofill ta
tmux-and-tmuxinator-sessions
以下を出力します。
dotfiles
landonschropp.com
something
something_else
ただし、入力ta
してタブを押すと、次のようになります。
ta dotfiles$'\n'landonschropp.com$'\n'something$'\n'something_else
私はZshにかなり慣れていないので、助けていただければ幸いです。