Skip to content

Commit

Permalink
Handle 1Pass in WSL at $WORK correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Aug 14, 2024
1 parent 78f2c59 commit 3a66f30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/git/gitconfig.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
[gpg]
format = ssh
[gpg "ssh"]
{%- if is_linux() %}
; program = "/opt/1Password/op-ssh-sign"
{%- if hostname() == "Neptune" %}
program = "/mnt/c/Users/SondreAasemoen/AppData/Local/1Password/app/8/op-ssh-sign-wsl"
{%- elif is_linux() %}
program = "/opt/1Password/op-ssh-sign"
{%- else %}
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
{%- endif %}
Expand Down Expand Up @@ -47,6 +48,9 @@
[core]
autocrlf = input
excludesFile = ~/.gitignore
{%- if hostname() == "Neptune" %}
sshCommand = ssh.exe
{%- endif %}
[init]
defaultBranch = main
[pager]
Expand Down

0 comments on commit 3a66f30

Please sign in to comment.