mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
fish: rename tmux helper functions
This commit is contained in:
parent
d29efab025
commit
64d001455a
12 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue