Skip to content

Commit

Permalink
add ssh key from 1password
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaron committed May 9, 2024
1 parent 9b8a46b commit 2fc5e4b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions home/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ data:
name: "Michael Taron"
email: {{ quote $email }}
github: "mtaron"
onepasswordAccount: "4JYUJGXG2RAP5P2ZFLLHMMM33U"

workload:
docker:
Expand Down
2 changes: 1 addition & 1 deletion home/.chezmoiscripts/linux/run_once_after_chsh.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ set -e
zsh_path="$(command -v zsh)"
if [ "$SHELL" != "$zsh_path" ]; then
echo "▶️ changing default shell to zsh"
sudo chsh --shell "$zsh_path"
chsh --shell "$zsh_path"
fi
{{- end -}}
2 changes: 1 addition & 1 deletion home/private_dot_config/private_zsh/private_dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ source "$XDG_DATA_HOME/zgenom/zgenom.zsh"
if ! zgenom saved; then
zgenom ohmyzsh

# Adds 'acs' alias that lists aliases grouped by plugin
# Adds 'als' alias that lists aliases grouped by plugin
zgenom ohmyzsh plugins/aliases
zgenom ohmyzsh plugins/copypath
zgenom ohmyzsh plugins/nvm
Expand Down
1 change: 1 addition & 0 deletions home/private_dot_ssh/id_ed25519.pub.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ onepasswordRead "op://Personal/SSH Key/public key" .user.onepasswordAccount }}
1 change: 1 addition & 0 deletions home/private_dot_ssh/private_id_ed25519.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ onepasswordRead "op://Personal/SSH Key/private key?ssh-format=openssh" .user.onepasswordAccount }}

0 comments on commit 2fc5e4b

Please sign in to comment.