マルチスクリーン端末にビューを保存する

マルチスクリーン端末にビューを保存する

Ubuntuの基本的なシングルビュー画面端末でやっているように。

 gnome-terminal \
  --tab-with-profile=Default --working-directory="some dir" --title="some title" \
  --tab-with-profile=Default --working-directory="another dir" --title="title" \

上記のコマンドを実行ファイルに保存し、1回の実行で複数の端末を開きました。ただし、基本端末のみが開きます。

複数のビューを含む画面を保存して、クリック(ブックマーク可能な場合)ですべて開くか、単一のコマンドを実行できますか?

Ubuntu用マルチビュー画面アプリ:ターミナルマルチプレクサ(tmux)、ターミネータ、スクリーン...

ベストアンサー1

@jasonwryanが提案したリンクに従って問題を解決するために、次のスクリプトを作成しました。

cd dir1
tmux new-window -a -n WinSplit
tmux new-session -d -s WinSplit
tmux selectp -t WinSplit
tmux split-window -v
cd dir2
tmux select-pane -U
tmux split-window -h
cd dir3
tmux split-window -v
#tmux select-layout even-vertical
tmux attach -t WinSplit

tmux bind -n M-Left select-pane -L
tmux bind -n M-Right select-pane -R
tmux bind -n M-Up select-pane -U
tmux bind -n M-Down select-pane -D

おすすめ記事