diff --git a/bin/actions/secrets.sh b/bin/actions/secrets.sh index ffaf597..7d4f7cf 100755 --- a/bin/actions/secrets.sh +++ b/bin/actions/secrets.sh @@ -26,7 +26,7 @@ if [[ "$2" == "decrypt" ]]; then for file in ~/.ssh/config.d/*.gpg; do filename=$(basename $file .gpg) - gpg --quiet --batch --yes --decrypt --passphrase="$password" --output ~/.ssh/config.d/$filename $file + gpg --quiet --batch --yes --decrypt --passphrase="$password" --output ~/.ssh/config.d/$filename.conf $file done elif [[ "$2" == "encrypt" ]]; then printfe "%s\n" "cyan" "Encrypting .ssh/config.d/ files..." diff --git a/config/ssh/config b/config/ssh/config index df78326..18ded0c 100644 --- a/config/ssh/config +++ b/config/ssh/config @@ -1,4 +1,4 @@ Host * IdentityAgent ~/.1password/agent.sock -Include ~/.ssh/config.d/* +Include ~/.ssh/config.d/*.conf