Skip to content

Tmux

Tmux setup 1 - Oh my tmux!

cd ~
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf

~/.tmux.conf.local

echo "" > ~/.tmux.conf.local
echo "tmux_conf_theme_left_separator_main='\uE0B0'" >> ~/.tmux.conf.local
echo "tmux_conf_theme_left_separator_sub='\uE0B1'" >> ~/.tmux.conf.local
echo "tmux_conf_theme_right_separator_main='\uE0B2'" >> ~/.tmux.conf.local
echo "tmux_conf_theme_right_separator_sub='\uE0B3'" >> ~/.tmux.conf.local
echo "tmux_conf_theme_status_left=' 💀 '"  >> ~/.tmux.conf.local
echo "tmux_conf_theme_status_right=\" #{prefix}#{mouse}#{pairing}#{synchronized} #(if $(/sbin/ifconfig tun0 > /dev/null 2>/dev/null); then /sbin/ifconfig tun0 | /usr/bin/grep 'inet ' | /usr/bin/cut -d ' ' -f 10 2>/dev/null; else /sbin/ifconfig eth0 | /usr/bin/grep 'inet ' | /usr/bin/cut -d ' ' -f 10 2>/dev/null; fi) , %R , %d %b | #{username}#{root} | #{hostname} \""   >> ~/.tmux.conf.local
  • in case of problem try different font Hack Regular works for me sudo apt install fonts-hack-ttf
  • to reload configuration Ctrl+b r

~/.bashrc

echo "PS1='💀 \[\e[36m\]\w\[\e[m\] '" >> ~/.bashrc
echo "PS1='💀 \[\e[2;49;32m\]\w\[\e[m\] '" >> ~/.bashrc
source ~/.bashrc

Custom tmux starter

apt install neofetch 
sudo vim /usr/bin/tmuxx
#!/bin/bash
tmux new-session -d -s mySession -n hello
tmux send-keys -t mySession:hello "neofetch" Enter
tmux attach -t mySession:hello
sudo chmod +x /usr/bin/tmuxx
tmuxx