Guest User

Untitled

a guest
Jul 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. source ~/.zsh/preload.zsh
  2. source "$HOME/.config/antigen.zsh"
  3. export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
  4. export PATH="/usr/local/bin:$PATH"
  5. export PATH="/usr/local/sbin:$PATH"
  6. export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
  7. export JAVA_HOME=$(/usr/libexec/java_home)
  8.  
  9. source ~/.zsh/history.zsh
  10. source ~/.zsh/aliases.zsh
  11. source ~/.zsh/exports.zsh
  12.  
  13. antigen init "$HOME/.antigenrc"
  14. #antigen apply
  15.  
  16.  
  17.  
  18. #if [ -f "$HOME/.python/bin/activate" ]; then
  19. # VIRTUAL_ENV_DISABLE_PROMPT=1 . "$HOME/.python/bin/activate"
  20. #elif command -v pyenv 1>/dev/null 2>&1; then
  21. # eval "$(pyenv init -)"
  22. #fi
  23.  
  24. #eval "$(pipenv --completion)"
  25. export NVM_DIR="$HOME/.nvm"
  26. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  27.  
  28. #if [ -d "$HOME/.bin" ]; then
  29. # export PATH="$HOME/.bin:$PATH"
  30. #fi
  31.  
  32. ###-begin-pm2-completion-###
  33. ### credits to npm for the completion file model
  34. #
  35. # Installation: pm2 completion >> ~/.bashrc (or ~/.zshrc)
  36. #
  37.  
  38. COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
  39. COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
  40. export COMP_WORDBREAKS
  41.  
  42. if type complete &>/dev/null; then
  43. _pm2_completion () {
  44. local si="$IFS"
  45. IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
  46. COMP_LINE="$COMP_LINE" \
  47. COMP_POINT="$COMP_POINT" \
  48. pm2 completion -- "${COMP_WORDS[@]}" \
  49. 2>/dev/null)) || return $?
  50. IFS="$si"
  51. }
  52. complete -o default -F _pm2_completion pm2
  53. elif type compctl &>/dev/null; then
  54. _pm2_completion () {
  55. local cword line point words si
  56. read -Ac words
  57. read -cn cword
  58. let cword-=1
  59. read -l line
  60. read -ln point
  61. si="$IFS"
  62. IFS=$'\n' reply=($(COMP_CWORD="$cword" \
  63. COMP_LINE="$line" \
  64. COMP_POINT="$point" \
  65. pm2 completion -- "${words[@]}" \
  66. 2>/dev/null)) || return $?
  67. IFS="$si"
  68. }
  69. compctl -K _pm2_completion + -f + pm2
  70. fi
  71. ###-end-pm2-completion-###
Add Comment
Please, Sign In to add comment