mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
fix(fish): tmux_attach variable names were messed up lol
This commit is contained in:
parent
8ddfa3c474
commit
6a2004f7b5
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue