From 251f7b2cfd5bb7286cd4601e80d312d09b2fddf3 Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Wed, 5 Mar 2025 21:25:19 -0600 Subject: [PATCH] fixed tmux alias, so tmux command isn't lost --- .alias | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.alias b/.alias index b4547f1..e2fa3f4 100644 --- a/.alias +++ b/.alias @@ -15,7 +15,14 @@ alias vi="vim" #Insure vim -alias tmux='tmux attach || tmux' +tmux_alias() { + if [[ $# -eq 0 ]]; then + tmux attach + else + tmux "$@" + fi +} +alias tmux=tmux_alias #Coloration of core utils alias grep="grep -n --color=auto" #grep alias egrep='egrep --color=auto'