]> arthur.barton.de Git - ax-zsh.git/blob - plugins/ssh/ssh.zshrc
Initial commit
[ax-zsh.git] / plugins / ssh / ssh.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # ssh.zshrc: Setup (Open-) SSH
3
4 ssh_logname_prompt() {
5         [[ -n "$SSH_CLIENT" ]] || return 1
6         echo "$LOGNAME"
7         return 0
8 }
9
10 ax_logname_prompt_functions=($ax_logname_prompt_functions ssh_logname_prompt)
11
12 ssh_hostname_prompt() {
13         [[ -n "$SSH_CLIENT" ]] || return 1
14         echo "$SHORT_HOST"
15         return 0
16 }
17
18 ax_hostname_prompt_functions=($ax_hostname_prompt_functions ssh_hostname_prompt)