]> arthur.barton.de Git - ax-zsh.git/blob - plugins/ssh_macos/ssh_macos.zshrc
Add "ssh_macos“ plugin
[ax-zsh.git] / plugins / ssh_macos / ssh_macos.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # ssh_macos.zshrc: Additional configuration for SSH on Apple macOS X
3
4 # Make sure that "ssh(1)" is installed.
5 (( $+commands[ssh] )) || return 1
6
7 # Test for macOS Sierra (10.12) or newer:
8 [[ $(uname -s) = "Darwin" ]] || return 1
9 [[ $(uname -r | cut -d'.' -f1) -ge 16 ]] || return 1
10
11 # Load SSH keys from Keychain into SSH agent when the agent has no keys.
12 ssh-add -l >/dev/null || ssh-add -A >/dev/null 2>&1