1
0

bashrc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # .bashrc
  2. # Source global definitions
  3. if [ -f /etc/bashrc ]; then
  4. . /etc/bashrc
  5. fi
  6. # Always use the virtualenv
  7. workon python3-pagure
  8. # To avoid confusion, start in the `devel` directory
  9. cd devel
  10. # Uncomment the following line if you don't like systemctl's auto-paging feature:
  11. # export SYSTEMD_PAGER=
  12. # User specific aliases and functions
  13. # If adding new functions to this file, note that you can add help text to the function
  14. # by defining a variable with name _<function>_help containing the help text
  15. export PAGURE_CONFIG=~/pagure.cfg
  16. pstart (){
  17. systemctl --user start pagure.service pagure-docs.service pagure_ci.service\
  18. pagure_ev.service pagure_webhook.service pagure_worker.service
  19. echo 'The application is running on http://localhost:5000/'
  20. }
  21. pstop (){
  22. systemctl --user stop pagure.service pagure-docs.service pagure_ci.service\
  23. pagure_ev.service pagure_webhook.service pagure_worker.service
  24. }
  25. prestart (){
  26. systemctl --user restart pagure.service pagure-docs.service pagure_ci.service\
  27. pagure_ev.service pagure_webhook.service pagure_worker.service
  28. echo 'The application is running on http://localhost:5000/'
  29. }
  30. pstatus (){
  31. systemctl --user status pagure.service pagure-docs.service pagure_ci.service\
  32. pagure_ev.service pagure_webhook.service pagure_worker.service
  33. }