1

As I do in default single view screen terminal of ubuntu;

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

I save above command in an executable file and open multiple terminals in single execution. But it opens default terminal only.

Can I save screen with multiple views such that I can open all in a single click(if it can be bookmarked) or by running single command?

Multiview screen application for ubuntu: terminal multiplexer (tmux), terminator, screen ...

0

As per suggested link of @jasonwryan, I created following script to solve my problem;

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.