# Setting your prompt to show the current topic

**URL:** https://discuss.tryton.org/t/setting-your-prompt-to-show-the-current-topic/6172
**Category:** Developer
**Tags:** mercurial
**Created:** [May 24, 2023, 9:25am UTC](https://discuss.tryton.org/t/setting-your-prompt-to-show-the-current-topic/6172 "2023-05-24T09:25:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nicoe](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/nicoe/32/2880_2.png) [@nicoe](https://discuss.tryton.org/u/nicoe)
#### Post date: [May 24, 2023, 9:25am UTC](https://discuss.tryton.org/t/setting-your-prompt-to-show-the-current-topic/6172/1 "2023-05-24T09:25:50Z")

</div>

While giving the talk about mercurial tips & tricks I got a request on the tools I’m using to show the topic name in the prompt:

![2023-05-24T11:18:44,533913562+02:00](https://discuss-cdn.tryton.org/uploads/default/original/2X/9/99c5dcef7c7e2d8ba3ee33c28a8494b947475d24.png)

I achieved that by using [starship](https://starship.rs/) which is a cross-shell prompt configurator that is really fast.

Here’s the configuration I am using (skipping the irrelevant parts):

```auto
add_newline = true

format = """
${username}${hostname}$directory$python${hg_branch}${custom.hg_topic}${git_branch}${git_state}
$jobs$character"""

[hg_branch]
format = "( [ $branch](green))([:$topic](blue bold))"
style="green"
disabled = false

```
