If you have issues installing the plugins below, close alacritty and open it again
Press ctrl+b in the terminal to execute tmux commands
Then capital I shift+i to install
Notice that the pane shows at the bottom
tmux configuration file
We’ll go over the tmux configuration file in the video. I have comments In the file that will help you navigate around and better use tmux
Delete tmux resurrect settings
I wanted to delete my resurrect data to start fresh with tmux, so all you need to do is delete this folder below. You can mv it instead of deleting it in case you want to back it up
1
rm-rf ~/.local/share/tmux
Tmux basics
To start a new tmux session without sourcing the .tmux.conf file this is useful to see if your config is causing any issues
1
tmux -f /dev/null
From inside tmux to view the list of all the commands run
ctrl+b?
Create a new session with a name outside tmux
1
tmux new -s xcp
Create a new session with a name from within tmux
So press ctrl+b
Then :
1
new -s dotfiles
Detach from the session (this even closes Alacritty for me)
ctrl+b d - from within tmux
1
tmux detach
See list of sessions
ctrl+b s - from within tmux
1
tmux ls
See list of windows and sessions
ctrl+b w
When in here, you can type x to kill a session and type yes at the bottom
Attach to a session
1
2
tmux a -t xcp
tmux a -t 0
To create a new window inside a session
ctrl+b c
Kill current window (or just type exit on the terminal)
C-b &
To navigate between windows inside a session
ctrl+b n - next
ctrl+b p - previous (I remapped this to ‘m’)
ctrl+b # - specify a number
Maximize and minimize back a pane
ctrl+b m - I remapped this to ctrl+b M
Rename a session
ctrl+b $
Rename current window
ctrl+b ,
Scroll in a tmux pane
ctrl+[
Then scroll with vim navigation
When inside this mode you can also use the following and the cursor will be kept in a fixed position
shift J
shift K
When in this mode:
We can select text with v
And copy the text with y
This is because the bind-key -T copy-mode-vi 'v' send -X begin-selection lines in our tmux config file
q to stop scrolling
or ctrl+c
Community-driven promotion
Do you want to promote yourself in my channel? I’m not talking about a company like notion, brilliant, and all those other ones we’re using to seeing. I’m talking about you as a person, do you have a project, course, youtube channel or product and trying to reach an audience?
If interested, pricing and all the details can be found in this other page
You’re a fraud, why do you ask for money, isn’t YouTube Ads enough?
I explain all of this in the “about me page” link below: