diff --git a/bin/dotme-apk b/bin/dotme-apk index 4f90d19f..de88afa8 100755 --- a/bin/dotme-apk +++ b/bin/dotme-apk @@ -13,6 +13,8 @@ log:: "updating apk" apk add bash apk add curl apk add git +apk add openssh-client +apk add openssh-keygen apk add python3 apk add stow diff --git a/bin/dotme-key b/bin/dotme-key index c1a7760a..caa04b81 100755 --- a/bin/dotme-key +++ b/bin/dotme-key @@ -1,6 +1,33 @@ #!/usr/bin/env bash $(shim) && cd ${ME} && . bin/i.sh + +OPTIND=1 +while getopts "hn:" o; do case "$o" in + h) help="y" ;; + n) key_name=$OPTARG ;; # Qualifying name of key file +esac done + +if [[ -n "$help" ]] ; then + cat < ${sshConfig} Host * AddKeysToAgent yes - UseKeychain yes IdentityFile ${keyFile} EOF + if is-macos ; then +cat <> ${sshConfig} + UseKeychain yes +EOF + fi fi