From 50f45285718f97d2f2a486973d0c54b673db2cd7 Mon Sep 17 00:00:00 2001 From: Alec Lomas Date: Fri, 4 Sep 2026 13:53:17 -0700 Subject: [PATCH] :memo: update initialization steps --- README.md | 7 +++---- configure-strongbox.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 configure-strongbox.sh diff --git a/README.md b/README.md index 5881863..ca92f3f 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,9 @@ 1. Run `xcode-select --install` (or otherwise install `git`) 1. Install [Strongbox](https://strongboxsafe.com/) via App Store -1. Configure and enable the [Strongbox SSH Agent](https://strongbox.reamaze.com/articles/ssh-agent) - - Run `ln -s ~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ~/.strongbox/agent.sock` - - Run `SSH_AUTH_SOCK=~/.strongbox/agent.sock; export SSH_AUTH_SOCK;` - - Copy your git SSH public key to `~/.ssh/alomas-git.pub` to enable git signing +1. Enable the [Strongbox SSH Agent](https://strongbox.reamaze.com/articles/ssh-agent) +1. Run `sh ./configure-strongbox.sh` +1. Copy your git SSH public key to `~/.ssh/alomas-git.pub` to enable git signing 1. Run `git@github.com:lowmess/dotfiles.git` from the home directory 1. Run `sh ./install.sh` from within the dotfiles repo 1. Have fun setting up all those apps you just downloaded diff --git a/configure-strongbox.sh b/configure-strongbox.sh new file mode 100644 index 0000000..eb7a27a --- /dev/null +++ b/configure-strongbox.sh @@ -0,0 +1,13 @@ +# create root folder +mkdir ~/.strongbox + +# create a symlink for the SSH agent +ln -s ~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ~/.strongbox/agent.sock + +# add the agent to the SSH config +touch ~/.ssh/config +echo 'Host *\n IdentityAgent ~/.strongbox/agent.sock' >> ~/.ssh/config + +# enable the agent for the rest of this session (once dotfiles are installed, its in the PATH) +SSH_AUTH_SOCK=~/.strongbox/agent.sock +export SSH_AUTH_SOCK -- 2.51.2