]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/ssh/ssh.zshrc
Refactor prompt functions
[ax-zsh.git] / default_plugins / ssh / ssh.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # ssh.zshrc: Setup (Open-) SSH
3
4 # Make sure that "ssh(1)" is installed
5 (( $+commands[ssh] )) || return
6
7 _ax_ssh_prompt() {
8         [[ -n "$SSH_CLIENT" ]] || return 1
9         return 0
10 }
11
12 ax_logname_prompt_functions=($ax_logname_prompt_functions _ax_ssh_prompt)
13 ax_hostname_prompt_functions=($ax_hostname_prompt_functions _ax_ssh_prompt)