fish: rename tmux helper functions

This commit is contained in:
Primrose 2024-11-15 18:51:50 +01:00
parent d29efab025
commit 64d001455a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
12 changed files with 24 additions and 24 deletions

View file

@ -0,0 +1,12 @@
function __tmux-attach-or-switch \
--description "Attach (not in tmux) or switch (in tmux) to a session"
### Arguments:
set session_name $argv[1]
if [ -z "$TMUX" ]
tmux attach-session -t $session_name
else
tmux switch-client -t $session_name
end
end