Skip to content

Instantly share code, notes, and snippets.

@iloveitaly
Last active October 31, 2023 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveitaly/4eac0f4ddb3f8162f95fa3ed6f123a06 to your computer and use it in GitHub Desktop.
Save iloveitaly/4eac0f4ddb3f8162f95fa3ed6f123a06 to your computer and use it in GitHub Desktop.
a zsh plug-in to load the one password shell completions and plugin environment variables
# make sure you execute this *after* asdf or other version managers are loaded
if (( $+commands[op] )); then
eval "$(op completion zsh)"
compdef _op op
# load plugins configuration
if [[ -f ~/.config/op/plugins.sh ]]; then
source ~/.config/op/plugins.sh
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment