feat: add 1Password CLI integration

This commit is contained in:
2023-03-09 21:53:01 +00:00
parent 4ff776f1f3
commit 0a17bbfadb
2 changed files with 11 additions and 0 deletions

8
zsh/1password.zsh Normal file
View File

@@ -0,0 +1,8 @@
#
# 1Password CLI integration
#
# Load 1Password CLI plugins if available.
if [ -f "$HOME/.config/op/plugins.sh" ]; then
source "$HOME/.config/op/plugins.sh"
fi

3
zshrc
View File

@@ -69,6 +69,8 @@ zinit light-mode wait lucid atload"!_zsh_autosuggest_start" \
# Completion
# ==============================================================================
setopt completealiases
# Group completions by type under group headings
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format '%B%d%b'
@@ -106,6 +108,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then source "$DOTZSH/macos.zsh"; fi
if [[ "$OSTYPE" == "linux"* ]]; then source "$DOTZSH/linux.zsh"; fi
# Utils
source "$DOTZSH/1password.zsh"
source "$DOTZSH/emacs.zsh"
source "$DOTZSH/fzf.zsh"
source "$DOTZSH/jq.zsh"