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,16 @@
function tmux-last \
--description "Toggle the last tmux session"
set tmux_last /tmp/TMUX_LAST
if [ ! -f $tmux_last ]
echo "Last session is not yet set"
return 1
end
set session_name (cat $tmux_last)
__tmux-register-session
__tmux-maybe-create $session_name /tmp
__tmux-attach-or-switch $session_name
end