From 110a2870a8b0db75a05be7f7028bd669ebcfb26d Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 20 May 2026 19:51:37 +0300 Subject: [PATCH] feat: zshrc tmux for termux --- home/user/.config/zsh/.zshrc | 6 ++++++ home/user/.config/zsh/aliases | 1 + 2 files changed, 7 insertions(+) diff --git a/home/user/.config/zsh/.zshrc b/home/user/.config/zsh/.zshrc index 09ba51c..67e0933 100644 --- a/home/user/.config/zsh/.zshrc +++ b/home/user/.config/zsh/.zshrc @@ -14,6 +14,12 @@ then exec tmux -N -L "${USER}" new-session fi exec tmux -N -L "${USER}" new-session -A +elif \ + [ -n "${TERMUX_VERSION}" ] && \ + command -v tmux &>/dev/null && \ + [ -z "${TMUX}" ] +then + exec tmux new-session fi if [ -f "${ZDOTDIR}/sourcer" ]; then diff --git a/home/user/.config/zsh/aliases b/home/user/.config/zsh/aliases index 79db5df..d6c532e 100644 --- a/home/user/.config/zsh/aliases +++ b/home/user/.config/zsh/aliases @@ -145,6 +145,7 @@ alias nfe='note fe' alias nfg='note fg' alias ng='note git' alias sn='mdpreview --browser --host localhost --port 0 "$(note --prefix)"' +alias nr="trynafail note random" # Cargo