How to get vertical split of terminal in Mac to execute different actions?
Possibly GNU Screen with vertical split?
It should already be installed on your Mac, type screen
in the terminal.
You can also do this with emacs by itself.
Download iTerm2 for macOSX from here.
Use cmd + d
for vertical split and cmd + shift + d
for horizontal split
To navigate between the vertical splits in left/right or up/down fashion use cmd + [
and cmd + ]
I recommended iTerm 2 because of these features.
Also, I like the autocomplete feature which occurs when you press cmd + ;
Features in short include the following:
- Split Panes
- Hotkey Window
- Search
- Autocomplete
- Mouseless Copy
- Paste History
- Instant Replay
- Configurability
- Full Screen
- 256 Colors
- Unix-like
- Readability
- Mouse Reporting
- Growl Support
- Exposé Tabs
- Tagged Profiles
- Multi-Lingual
If you like to work with your terminal windows in fullscreen, you can use macOS' built in screen splitting feature like so:
- Open two terminal windows
- Toggle one of the terminal windows fullscreen
- Activate 'Mission Control' (default: F3)
- Drag the second terminal window onto the first's fullscreen space
- Enjoy your vertically split fullscreen terminal windows
You can switch keyboard focus between terms with ⌘-[ and ⌘-]
Tmux will allow you to split your screen into halves vertically or horizontally.
# install tmux
brew install tmux # on mac
sudo apt-get install tmux # on debian
# run it
tmux
# split the screen vertically using this shortcut
CTRL+B %
# split the screen horizontally using this shortcut
CTRL+B "
# switch between screens using this shortcut
CTRL+B o
According to here, native terminal (MacOS 10.15) supports splitting pane horizontally by using Command-D
.And Shift-Command-D
for closing pane.
It's weird to me there is no vertically splitting.