You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

4 years ago
  1. # This file must be used with "source bin/activate.csh" *from csh*.
  2. # You cannot run it directly.
  3. # Created by Davide Di Blasi <davidedb@gmail.com>.
  4. set newline='\
  5. '
  6. alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
  7. # Unset irrelevant variables.
  8. deactivate nondestructive
  9. setenv VIRTUAL_ENV "/home/alpcentaur/ProjektA/PrototypeWebApp/venv"
  10. set _OLD_VIRTUAL_PATH="$PATH:q"
  11. setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"
  12. if ("" != "") then
  13. set env_name = ""
  14. else
  15. set env_name = "$VIRTUAL_ENV:t:q"
  16. endif
  17. # Could be in a non-interactive environment,
  18. # in which case, $prompt is undefined and we wouldn't
  19. # care about the prompt anyway.
  20. if ( $?prompt ) then
  21. set _OLD_VIRTUAL_PROMPT="$prompt:q"
  22. if ( "$prompt:q" =~ *"$newline:q"* ) then
  23. :
  24. else
  25. set prompt = "[$env_name:q] $prompt:q"
  26. endif
  27. endif
  28. unset env_name
  29. alias pydoc python -m pydoc
  30. rehash