mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Merge pull request #378 from psprint/vars
This commit is contained in:
commit
37cd36e418
14
zinit.zsh
14
zinit.zsh
|
|
@ -143,6 +143,20 @@ ZINIT_2MAP=(
|
|||
PZT:: https://raw.githubusercontent.com/sorin-ionescu/prezto/master/
|
||||
PZTM:: https://raw.githubusercontent.com/sorin-ionescu/prezto/master/modules/
|
||||
)
|
||||
|
||||
# Global aliases for quick access to zinit dirs, use simply as e.g.: cd ZIDIR
|
||||
alias -g ZIBIN=${ZINIT[BIN_DIR]} \
|
||||
ZIDIR=${ZINIT[HOME_DIR]} ZIPLUGS=${ZINIT[PLUGINS_DIR]} \
|
||||
ZISNIPS=${ZINIT[SNIPPETS_DIR]} ZICOMPS=${ZINIT[COMPLETIONS_DIR]} \
|
||||
ZISERV=${ZINIT[SERVICES_DIR]} ZICACHE=$ZSH_CACHE_DIR \
|
||||
ZPFX=$ZPFX
|
||||
|
||||
# ... and few global variables, Can be used as e.g.: ~DIR or $DIR, etc.
|
||||
typeset -g ZIBIN=${ZINIT[BIN_DIR]} \
|
||||
ZIDIR=${ZINIT[HOME_DIR]} ZIPLUGS=${ZINIT[PLUGINS_DIR]} \
|
||||
ZISNIPS=${ZINIT[SNIPPETS_DIR]} ZICOMPS=${ZINIT[COMPLETIONS_DIR]} \
|
||||
ZISERV=${ZINIT[SERVICES_DIR]} ZICACHE=$ZSH_CACHE_DIR
|
||||
|
||||
# ]]]
|
||||
|
||||
# Init. [[[
|
||||
|
|
|
|||
Loading…
Reference in a new issue