Make session -p work remotely, also make host a flag

This commit is contained in:
2026-08-13 12:02:48 +01:00
parent bf1e0f0d67
commit d52920f8af
2 changed files with 94 additions and 48 deletions

View File

@@ -34,7 +34,7 @@ __session_hosts() {
}
_arguments \
'(- *)'{-h,--help}'[Show usage information]' \
'(- *)'{-p,--project}'[Create or attach to a session for a project in ~/Projects]:project:__session_projects' \
':session:__session_sessions' \
':host:__session_hosts'
'(- : *)'{-h,--help}'[Show usage information]' \
'(-H --host)'{-H,--host}'[Create or attach to the session on a remote host via ssh]:host:__session_hosts' \
'(-p --project :)'{-p,--project}'[Create or attach to a session for a project in ~/Projects]:project:__session_projects' \
'(-p --project)1:session:__session_sessions'