Skip to content

Commit

Permalink
apply gitconfig prefer ssh conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
underyx committed Jan 4, 2024
1 parent 01f30c0 commit 6dd6b2a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
- mkdir -p ~/bin
- mkdir -p ~/.config

# ssh
- shell:
- mkdir -p ~/.ssh

# zsh
- shell:
- mkdir -p ~/.zinit
Expand Down Expand Up @@ -51,7 +47,7 @@
- link:
~/.gitconfig: gitconfig
~/.gitconfig.prefer-ssh:
if: "[[ -d ~/.ssh ]]"
if: "ssh [email protected] 2>&1 | grep -q 'successfully authenticated'"
path: gitconfig.prefer-ssh
~/.gitignore.global: gitignore.global
~/bin/git-review-pr: bin/git-review-pr
Expand Down

0 comments on commit 6dd6b2a

Please sign in to comment.