Skip to content

rks/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

27308ed · Jan 30, 2024

History

94 Commits
Oct 25, 2016
Aug 1, 2022
Oct 30, 2020
Jan 10, 2023
Feb 21, 2023
Jan 30, 2024
May 10, 2016
Jan 30, 2024
Jan 30, 2024
Jan 10, 2023
May 10, 2016
Mar 19, 2020
Oct 24, 2016
May 6, 2017
Feb 21, 2023
Oct 30, 2020
Feb 21, 2023

Repository files navigation

dotfiles

Files that (mostly) start with a dot and do configurish things.

Setup (not yet scripted)

Turn off visible scrollbar for macOS Terminal

defaults write com.apple.Terminal AppleShowScrollBars -string WhenScrolling

Enable 1Password SSH agent, including for Docker Desktop

  1. Enable the 1Password SSH agent.
  2. Create an easier-to-remember symlink for the agent:
    mkdir -p $HOME/.1password; \
    ln -s $HOME/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock $HOME/.1password/agent.sock
  3. Create a LaunchAgent ($HOME/Library/LaunchAgents/com.1password.SSH_AUTH_SOCK.plist) that replaces the default macOS agent socket with the 1Password agent socket:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.1password.SSH_AUTH_SOCK</string>
        <key>ProgramArguments</key>
        <array>
            <string>/bin/sh</string>
            <string>-c</string>
            <string>/bin/ln -sf $HOME/.1password/agent.sock \$SSH_AUTH_SOCK</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
    </dict>
    </plist>
  4. Configure SSH ($HOME/.ssh/config) to use the 1Password agent:
    Host *
        IdentityAgent "$HOME/.1password/agent.sock"
    
  5. Configure Git ($HOME/.gitconfig) to sign commits with the 1Password agent:
    [commit]
        gpgsign = true
    [gpg]
        format = ssh
    [gpg "ssh"]
        program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
    

For Docker Desktop

  1. Mount /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
  2. Set the SSH_AUTH_SOCK environment variable to /run/host-services/ssh-auth.sock
  3. Add required hosts to the container user's $HOME/.ssh/known_hosts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published