Efficient terminal setup with alacritty and tmux

Alacritty Terminal Emulator

sudo add-apt-repository ppa:aslatter/ppa
sudo apt update
sudo apt install alacritty

Tmux

sudo apt install tmux

Useful tmux keybindings and commands

bind-key g set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
setw -g mode-keys vi
set-option -g status-style bg=color234,fg=color244                             set-option -g status-left ''                             
set-option -g status-right '[#{session_name}]' set-option -g window-status-format '#{window_index}' set-option -g window-status-current-format '#[bold, fg=white]#{window_index}'
tsa() {
status_bar=$(cat $TMUX_SATUS_BAR)
tmux set-option -g status-right "$1 $status_bar"
echo "$1 $status_bar" > $TMUX_SATUS_BAR
}
tsd() {
echo '[#{session_name}]' > $TMUX_SATUS_BAR
status_bar=$(cat $TMUX_SATUS_BAR)
tmux set-option -g status-right "$status_bar"
}
set -g status-right "eth0: #(ifconfig eth0|grep inet|head -n 1|awk  '{ print $2 }')"

--

--

Cyber Security Student | Machine author in @hackthebox | find me on instagram @_kavi.gihan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kavishka Gihan

Cyber Security Student | Machine author in @hackthebox | find me on instagram @_kavi.gihan