strom/fish-misc
Archived
1
0
Fork 0
This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
fish-misc/functions/tma.fish

9 lines
327 B
Fish

# vim: ft=fish ts=4 sw=4 noet
function tma --description 'attach to existing tmux session or create a new one'
set -l sess 'main'
if count $argv >/dev/null
set sess $argv[1]
end
# work around a weird bug with "los server" when using fish to spawn a new session using brute force
command tmux new-session -A -s $sess
end