]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/shell-proxy/ssh-agent.py
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / shell-proxy / ssh-agent.py
1 #!/usr/bin/env python3
2 import os
3 import subprocess
4 import sys
5
6 ssh_proxy = os.path.join(os.path.dirname(__file__), "ssh-proxy.py")
7
8 argv = [
9     os.environ.get("__SSH_PROGRAM_NAME__", "ssh"),
10     "-o",
11     "ProxyCommand={} %h %p".format(ssh_proxy),
12     "-o",
13     "Compression=yes",
14 ]
15
16 subprocess.call(argv + sys.argv[1:], env=os.environ)