Guest User

Untitled

a guest
Jul 16th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # My System settings
  2. ## My VSC settings:
  3. ```
  4. ...
  5. "terminal.integrated.fontFamily": "monospace, PowerlineSymbols",
  6. "editor.renderIndentGuides": true,
  7. ...
  8. ```
  9.  
  10. ## My Zsh settings:
  11. ```
  12. ZSH_TMUX_AUTOSTART=true
  13. ZSH_TMUX_AUTOCONNECT=false
  14.  
  15.  
  16. plugins=(
  17. git
  18. git-flow
  19. node
  20. npm
  21. python
  22. pip
  23. tmux
  24. celery
  25. django
  26. virtualenv
  27. )
  28.  
  29. ...
  30.  
  31. AUTOENV_ENV_FILENAME=".autoenv"
  32. source ~/.autoenv/activate.sh
  33. ```
  34.  
  35. ## .autoenv example
  36.  
  37.  
  38. `code/.autoenv`:
  39. ```
  40. BASE_PATH=`dirname "$0"`
  41. PWD=`pwd`
  42.  
  43. if [[ "${BASE_PATH}" == "${PWD}" ]]
  44. then
  45. declare -f -F deactivate &>/dev/null
  46.  
  47. if [[ "${?}" == "0" ]]
  48. then
  49. deactivate
  50. fi
  51. fi
  52.  
  53. ```
  54.  
  55. `code/<project_name>/.autoenv`
  56.  
  57. ```
  58. BASE_PATH=`dirname "$0"`
  59. PWD=`pwd`
  60.  
  61. if [[ "${BASE_PATH}" == "${PWD}" ]]
  62. then
  63. if [[ -e venv/bin/activate ]]
  64. then
  65. source venv/bin/activate
  66. fi
  67. fi
  68. ```
Add Comment
Please, Sign In to add comment