{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2431","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2431/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2431/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2431/events","html_url":"https://github.com/fish-shell/fish-shell/issues/2431","id":108480961,"number":2431,"title":"Add Mercurial to Git Prompt","user":{"login":"Siecje","id":4069476,"avatar_url":"https://avatars.githubusercontent.com/u/4069476?v=3","gravatar_id":"","url":"https://api.github.com/users/Siecje","html_url":"https://github.com/Siecje","followers_url":"https://api.github.com/users/Siecje/followers","following_url":"https://api.github.com/users/Siecje/following{/other_user}","gists_url":"https://api.github.com/users/Siecje/gists{/gist_id}","starred_url":"https://api.github.com/users/Siecje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siecje/subscriptions","organizations_url":"https://api.github.com/users/Siecje/orgs","repos_url":"https://api.github.com/users/Siecje/repos","events_url":"https://api.github.com/users/Siecje/events{/privacy}","received_events_url":"https://api.github.com/users/Siecje/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"milestone":null,"comments":24,"created_at":"2015-09-26T17:16:20Z","updated_at":"2015-10-13T19:29:18Z","closed_at":null,"body":"As of https://github.com/fish-shell/fish-shell/pull/1837 the Terlar's fish prompt supports Mercurial.\r\n\r\nHowever it doesn't support Mercurial bookmarks.\r\n\r\nThe other issue is that you don't know that the Terlar prompt supports Mercurial.\r\n\r\nMercurial support should be added to ```Classic + Git``` and the named changed to ```Classic + Git + Mercurial```\r\n\r\nHere is my personal modification\r\n\r\n```fish\r\nfunction get_hg_info\r\n    if test -d .hg\r\n        set branch (hg branch)\r\n        set bookmark (hg book | grep \\* | cut -d' ' -f3)\r\n        echo \" ($branch|$bookmark)\"\r\n    end\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/147824231","html_url":"https://github.com/fish-shell/fish-shell/issues/2431#issuecomment-147824231","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/2431","id":147824231,"user":{"login":"faho","id":5185367,"avatar_url":"https://avatars.githubusercontent.com/u/5185367?v=3","gravatar_id":"","url":"https://api.github.com/users/faho","html_url":"https://github.com/faho","followers_url":"https://api.github.com/users/faho/followers","following_url":"https://api.github.com/users/faho/following{/other_user}","gists_url":"https://api.github.com/users/faho/gists{/gist_id}","starred_url":"https://api.github.com/users/faho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faho/subscriptions","organizations_url":"https://api.github.com/users/faho/orgs","repos_url":"https://api.github.com/users/faho/repos","events_url":"https://api.github.com/users/faho/events{/privacy}","received_events_url":"https://api.github.com/users/faho/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T19:29:18Z","updated_at":"2015-10-13T19:29:18Z","body":">You can also define, by \"API\", that the result of __fish_vcs_prompt is a strictly-ordered list, in which if the VCS exist, it will be there, else it's a empty string \"\".\r\n\r\nThat doesn't really apply if I want to drop-in \"__fish_vcs_prompt\" as a replacement for \"__fish_git_prompt\" in all sample prompts."}}