mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 01:53:22 +00:00
zshrc: op and ansible config locations
This commit is contained in:
9
zshrc
9
zshrc
@@ -138,9 +138,18 @@ fi
|
|||||||
|
|
||||||
# op (1Password cli) is present
|
# op (1Password cli) is present
|
||||||
if hash op 2>/dev/null; then
|
if hash op 2>/dev/null; then
|
||||||
|
export OP_CACHE="$XDG_STATE_HOME/1password"
|
||||||
|
mkdir -p $OP_CACHE;
|
||||||
eval "$(op completion zsh)"; compdef _op op
|
eval "$(op completion zsh)"; compdef _op op
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ansible configuration
|
||||||
|
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html
|
||||||
|
if hash ansible 2>/dev/null; then
|
||||||
|
export ANSIBLE_HOME="$XDG_STATE_HOME/ansible"
|
||||||
|
mkdir -p "$ANSIBLE_HOME"
|
||||||
|
fi
|
||||||
|
|
||||||
# gcloud is present
|
# gcloud is present
|
||||||
#if hash gcloud 2>/dev/null; then
|
#if hash gcloud 2>/dev/null; then
|
||||||
# GCLOUD_LOC=$(gcloud info --format="value(installation.sdk_root)" --quiet)
|
# GCLOUD_LOC=$(gcloud info --format="value(installation.sdk_root)" --quiet)
|
||||||
|
|||||||
Reference in New Issue
Block a user