Created
November 24, 2015 17:02
-
-
Save CodisRedding/f32784d891a134638c70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # shortcut to this dotfiles path is $ZSH | |
| export ZSH=$HOME/.dotfiles | |
| # your project folder that we can `c [tab]` to | |
| export PROJECTS=~/src | |
| # Stash your environment variables in ~/.localrc. This means they'll stay out | |
| # of your main dotfiles repository (which may be public, like this one), but | |
| # you'll have access to them in your scripts. | |
| if [[ -a ~/.localrc ]] | |
| then | |
| source ~/.localrc | |
| fi | |
| # all of our zsh files | |
| typeset -U config_files | |
| config_files=($ZSH/**/*.zsh) | |
| # load the path files | |
| for file in ${(M)config_files:#*/path.zsh} | |
| do | |
| source $file | |
| done | |
| # load everything but the path and completion files | |
| for file in ${${config_files:#*/path.zsh}:#*/completion.zsh} | |
| do | |
| source $file | |
| done | |
| # initialize autocomplete here, otherwise functions won't be loaded | |
| autoload -U compinit | |
| compinit | |
| # load every completion after autocomplete loads | |
| for file in ${(M)config_files:#*/completion.zsh} | |
| do | |
| source $file | |
| done | |
| unset config_files | |
| export NVM_DIR="/Users/fourq/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment