PageRenderTime 51ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/shlomif-settings/Bash/Themes/common/hg.bash

https://bitbucket.org/shlomif/shlomif-computer-settings
BASH | 35 lines | 29 code | 6 blank | 0 comment | 0 complexity | 7103e6a122317a14612dfeef913fcbb9 MD5 | raw file
  1. load_common prompt
  2. setup()
  3. {
  4. (
  5. mkdir -p "$hg_base"
  6. cd "$hg_base"
  7. hg clone "$remote_repo" "$trunk"
  8. )
  9. cd "$this"
  10. }
  11. _shlomif_bitbucket()
  12. {
  13. local repo="$1"
  14. shift
  15. $__themes_dir/common/bitbucket-hg-remote-repo.pl --user="shlomif" --repo="$repo"
  16. }
  17. __hg_ps1()
  18. {
  19. hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
  20. }
  21. __hg_prompt_branch()
  22. {
  23. hg prompt "{branch}" 2> /dev/null
  24. }
  25. __prompt_branch()
  26. {
  27. echo -n '@'
  28. __hg_prompt_branch
  29. }