]> arthur.barton.de Git - ax-zsh.git/blob - plugins/ssh_autoadd/ssh_autoadd.zshrc
axzshctl: Look harder for themes in remote modules
[ax-zsh.git] / plugins / ssh_autoadd / ssh_autoadd.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # ssh_autoadd.zshrc: Make sure that SSH keys are available
3
4 # Make sure that "ssh(1)" is installed.
5 (( $+commands[ssh] )) || return 1
6
7 # This plugin is optional.
8 [[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92
9
10 # Make sure that an SSH agent is available (but ignore failure):
11 [[ -n "$SSH_AUTH_SOCK" ]] || return 0
12
13 # Call the ax-zsh "ssh-autoadd" function.
14 [[ -t 1 ]] && ssh-autoadd -v