Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source ~/.zsh/preload.zsh
- source "$HOME/.config/antigen.zsh"
- export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
- export PATH="/usr/local/bin:$PATH"
- export PATH="/usr/local/sbin:$PATH"
- export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
- export JAVA_HOME=$(/usr/libexec/java_home)
- source ~/.zsh/history.zsh
- source ~/.zsh/aliases.zsh
- source ~/.zsh/exports.zsh
- antigen init "$HOME/.antigenrc"
- #antigen apply
- #if [ -f "$HOME/.python/bin/activate" ]; then
- # VIRTUAL_ENV_DISABLE_PROMPT=1 . "$HOME/.python/bin/activate"
- #elif command -v pyenv 1>/dev/null 2>&1; then
- # eval "$(pyenv init -)"
- #fi
- #eval "$(pipenv --completion)"
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- #if [ -d "$HOME/.bin" ]; then
- # export PATH="$HOME/.bin:$PATH"
- #fi
- ###-begin-pm2-completion-###
- ### credits to npm for the completion file model
- #
- # Installation: pm2 completion >> ~/.bashrc (or ~/.zshrc)
- #
- COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
- COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
- export COMP_WORDBREAKS
- if type complete &>/dev/null; then
- _pm2_completion () {
- local si="$IFS"
- IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
- COMP_LINE="$COMP_LINE" \
- COMP_POINT="$COMP_POINT" \
- pm2 completion -- "${COMP_WORDS[@]}" \
- 2>/dev/null)) || return $?
- IFS="$si"
- }
- complete -o default -F _pm2_completion pm2
- elif type compctl &>/dev/null; then
- _pm2_completion () {
- local cword line point words si
- read -Ac words
- read -cn cword
- let cword-=1
- read -l line
- read -ln point
- si="$IFS"
- IFS=$'\n' reply=($(COMP_CWORD="$cword" \
- COMP_LINE="$line" \
- COMP_POINT="$point" \
- pm2 completion -- "${words[@]}" \
- 2>/dev/null)) || return $?
- IFS="$si"
- }
- compctl -K _pm2_completion + -f + pm2
- fi
- ###-end-pm2-completion-###
Add Comment
Please, Sign In to add comment