Add zellij
This commit is contained in:
13
tasks.py
13
tasks.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user