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.

36 lines
1.0 KiB

  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. alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
  5. # Unset irrelevant variables.
  6. deactivate nondestructive
  7. setenv VIRTUAL_ENV "/home/yigido/projects/Food_Cloud/venv"
  8. set _OLD_VIRTUAL_PATH="$PATH"
  9. setenv PATH "$VIRTUAL_ENV/bin:$PATH"
  10. if ("" != "") then
  11. set env_name = ""
  12. else
  13. set env_name = `basename "$VIRTUAL_ENV"`
  14. endif
  15. # Could be in a non-interactive environment,
  16. # in which case, $prompt is undefined and we wouldn't
  17. # care about the prompt anyway.
  18. if ( $?prompt ) then
  19. set _OLD_VIRTUAL_PROMPT="$prompt"
  20. set prompt = "[$env_name] $prompt"
  21. endif
  22. unset env_name
  23. alias pydoc python -m pydoc
  24. rehash