Replace my iTerm2 by Tmux to refresh dev works

I got slowness problem on my iTerm2. iTerm2 keeps update frequently with some improvements but still felt it’s not enough to me to just perform some basic features. I have gone back to the default Terminal app of macOS and do my job on it. Seems slowne…


This content originally appeared on DEV Community and was authored by ѵµσɳɠ ?

I got slowness problem on my iTerm2. iTerm2 keeps update frequently with some improvements but still felt it's not enough to me to just perform some basic features. I have gone back to the default Terminal app of macOS and do my job on it. Seems slowness/lagging situations were not happened anymore.

But the default Terminal app is actually missing things of iTerm2 which are things I actually work with every day: Multi-panes instead of multi-tabs and the panes can be resizable.

I heard about Tmux before, but never try it yet. Just have a quick test and feel happy with its features.

image

With just one simple picture above and this article How to resize panes in Tmux. I won't be depended on iTerm2 just from today.

# From this link https://superuser.com/a/1108521/371246
# 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 and %

# split the screen horizontally using this shortcut
CTRL+B and "

# switch between screens using this shortcut
CTRL+B and o

To resize panes

// This assumes that you've hit ctrl + b and : to get to the command prompt
:resize-pane -L

:resize-pane -D (Resizes the current pane down)
:resize-pane -U (Resizes the current pane upward)
:resize-pane -L (Resizes the current pane left)
:resize-pane -R (Resizes the current pane right)
:resize-pane -D 10 (Resizes the current pane down by 10 cells)
:resize-pane -U 10 (Resizes the current pane upward by 10 cells)
:resize-pane -L 10 (Resizes the current pane left by 10 cells)
:resize-pane -R 10 (Resizes the current pane right by 10 cells)

Many commands as cheat sheet is listing at here https://tmuxcheatsheet.com/

This is an article pointing to Mac users. Otherwise the Windows users now must be happy with Windows Terminal

image

Happy coding!


This content originally appeared on DEV Community and was authored by ѵµσɳɠ ?


Print Share Comment Cite Upload Translate Updates
APA

ѵµσɳɠ ? | Sciencx (2021-06-12T05:18:02+00:00) Replace my iTerm2 by Tmux to refresh dev works. Retrieved from https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/

MLA
" » Replace my iTerm2 by Tmux to refresh dev works." ѵµσɳɠ ? | Sciencx - Saturday June 12, 2021, https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/
HARVARD
ѵµσɳɠ ? | Sciencx Saturday June 12, 2021 » Replace my iTerm2 by Tmux to refresh dev works., viewed ,<https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/>
VANCOUVER
ѵµσɳɠ ? | Sciencx - » Replace my iTerm2 by Tmux to refresh dev works. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/
CHICAGO
" » Replace my iTerm2 by Tmux to refresh dev works." ѵµσɳɠ ? | Sciencx - Accessed . https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/
IEEE
" » Replace my iTerm2 by Tmux to refresh dev works." ѵµσɳɠ ? | Sciencx [Online]. Available: https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/. [Accessed: ]
rf:citation
» Replace my iTerm2 by Tmux to refresh dev works | ѵµσɳɠ ? | Sciencx | https://www.scien.cx/2021/06/12/replace-my-iterm2-by-tmux-to-refresh-dev-works/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.