Add opam support.
parent
772fed9938
commit
56c289a05a
|
@ -23,6 +23,7 @@ ZSH_GCLOUD_FIXES=${ZSH_GCLOUD_FIXES:=$(when_binary_available gcloud)}
|
|||
ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1}
|
||||
ZSH_GPG_SSH_AGENT=${ZSH_GPG_SSH_AGENT:-$(has_binary gpgconf && [ -z "${SSH_AUTH_SOCK:-}" ] && [ -f $(gpgconf --list-dirs agent-ssh-socket) ] && printf 1 || printf 0)}
|
||||
ZSH_LOGO_LS=${ZSH_LOGL_LS:-$(when_binary_available logo-ls)}
|
||||
ZSH_OPAM=${ZSH_OPAM:-$(when_binary_available opam)}
|
||||
ZSH_PIPX=${ZSH_PIPX:-$(when_binary_available pipx)}
|
||||
ZSH_POWERLINE="${ZSH_POWERLINE:-1}"
|
||||
ZSH_PRESERVE_HISTORY="${ZSH_PRESERVE_HISTORY:-1}"
|
||||
|
@ -168,6 +169,13 @@ if [ $ZSH_SYNTAX_HIGHLIGHTING -gt 0 ]; then
|
|||
fi
|
||||
section_end
|
||||
|
||||
# opam
|
||||
section "opam"
|
||||
if [ $ZSH_OPAM -gt 0 ]; then
|
||||
[[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh >/dev/null 2>/dev/null
|
||||
fi
|
||||
section_end
|
||||
|
||||
# gcloud fixes
|
||||
section "gcloud fixes"
|
||||
if [ $ZSH_GCLOUD_FIXES -gt 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue