Skip to content

Commit

Permalink
fix(macos): support orbstack in ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
natelandau committed Oct 11, 2024
1 parent 930b1ac commit 5ee78ba
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 99 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- post-commit
- push
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
Expand All @@ -33,7 +33,7 @@ repos:
- id: trailing-whitespace

- repo: "https://github.com/crate-ci/typos"
rev: v1.25.0
rev: v1.26.0
hooks:
- id: typos

Expand Down
7 changes: 7 additions & 0 deletions dotfiles/dot_ssh/config.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{{- if and (eq .chezmoi.os "darwin") (joinPath .chezmoi.homeDir ".orbstack/ssh/config" | lstat) -}}
# Added by OrbStack: 'orb' SSH host for Linux machines
# This only works if it's at the top of ssh_config (before any Host blocks).
# This won't be added again if you remove it.
Include ~/.orbstack/ssh/config
{{- end }}

# Create a new key with:
# ssh-keygen -f [filename] -t ed25519 -C "[comment]"
# ssh-keygen -f [filename] -t rsa -b 4096 -C "[comment]"
Expand Down
Loading

0 comments on commit 5ee78ba

Please sign in to comment.