/shlomif-settings/Bash/Themes/common/hg.bash
BASH | 35 lines | 29 code | 6 blank | 0 comment | 0 complexity | 7103e6a122317a14612dfeef913fcbb9 MD5 | raw file
- load_common prompt
- setup()
- {
- (
- mkdir -p "$hg_base"
- cd "$hg_base"
- hg clone "$remote_repo" "$trunk"
- )
- cd "$this"
- }
- _shlomif_bitbucket()
- {
- local repo="$1"
- shift
- $__themes_dir/common/bitbucket-hg-remote-repo.pl --user="shlomif" --repo="$repo"
- }
- __hg_ps1()
- {
- hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
- }
- __hg_prompt_branch()
- {
- hg prompt "{branch}" 2> /dev/null
- }
- __prompt_branch()
- {
- echo -n '@'
- __hg_prompt_branch
- }