add hook for termux

This commit is contained in:
thek4n 2023-12-22 21:56:32 +03:00
parent af6ae8dd0c
commit f9c16cc297

View File

@ -0,0 +1,5 @@
cat > "$HOME/.config/bash/bashrc.d/01_tmux.sh" << EOF
if command -v tmux 1>/dev/null && [[ -z "\$TMUX" ]] && [[ ! "\$TERM" =~ tmux ]]; then
exec tmux new
fi
EOF