dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 3047461dc8202bd199a2eefa4cdcf46d3aa0214a
parent 4076c0798cc02034e818504210621ffa526bec30
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 11 Jul 2025 13:12:46 +0100

feat(zsh): tmux{,p} launch function

Diffstat:
Mzsh/.config/zsh/aliases.zsh | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/zsh/.config/zsh/aliases.zsh b/zsh/.config/zsh/aliases.zsh @@ -248,6 +248,18 @@ command -v gmake >/dev/null && alias make='gmake' mkdir -p "$1" && cd "$1" } + t() { + S=$# + [[ $S -eq 0 ]] || S=▒ + [ ! -f /tmp/tmux.lock ] && { + /usr/bin/tmuxp load ~/.config/tmux/main.yaml && \ + touch /tmp/tmux.lock + } || \ + tmux new-session -A -s "$S" + tmux set-environment LC_ALL 'en_US.UTF-8' + tmux set-environment LANG 'en_US.UTF-8' + } + :q!() { [[ -v SSH_TTY ]] && echo dumpshock || { ping -q -c1 pigley >/dev/null 2>&1 && {