Add zellij
Some checks failed
Linting / YAML Lint (push) Successful in 11s
Linting / Ansible Lint (push) Failing after 35s

This commit is contained in:
2026-03-04 20:17:35 +03:00
parent f3b888853e
commit 6350a1112d
2 changed files with 31 additions and 7 deletions

View File

@@ -68,13 +68,22 @@ def pl(ctx: Context) -> None:
@task
def ssh(ctx: Context) -> None:
"""SSH на удалённый сервер"""
ctx.run(f"ssh {_remote_user()}@{_remote_host()}", pty=True)
subprocess.run(f"ssh {_remote_user()}@{_remote_host()}", shell=True)
@task
def zj(ctx: Context) -> None:
"""Запуск zellij на удаленном сервере"""
subprocess.run(
f"ssh {_remote_user()}@{_remote_host()} -t zellij attach --create main",
shell=True,
)
@task
def btop(ctx: Context) -> None:
"""Запустить btop на удалённом сервере"""
ctx.run(f"ssh {_remote_user()}@{_remote_host()} -t btop", pty=True)
subprocess.run(f"ssh {_remote_user()}@{_remote_host()} -t btop", shell=True)
@task