fix(fish): tmux_attach variable names were messed up lol

This commit is contained in:
Léana 江 2023-04-29 22:45:09 +02:00 committed by Léana 江
parent 8ddfa3c474
commit 6a2004f7b5
3 changed files with 7 additions and 4 deletions

View file

@ -2,9 +2,10 @@ function tmux_attach --description "attach to existing tmux sessions"
set -f selected (tmux list-sessions -F "#{session_name}" | fzf)
if test -z "$TMUX"
tmux attach-session -t "$selected_name"
tmux attach-session -t "$selected"
return 0
else
tmux switch-client -t "$selected_name"
tmux switch-client -t "$selected"
end
end