From f9c16cc297aac595b04b880cbd75a27501dda484 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 22 Dec 2023 21:56:32 +0300 Subject: [PATCH] add hook for termux --- install-hooks/termux/post-install | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 install-hooks/termux/post-install diff --git a/install-hooks/termux/post-install b/install-hooks/termux/post-install new file mode 100755 index 0000000..66e13bf --- /dev/null +++ b/install-hooks/termux/post-install @@ -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