Mercurial > dotfiles
view dot_config/private_fish/functions/fish_right_prompt.fish @ 1091:a1fab5298ef6 draft tip
feat: update to bitwarden 25.3 and enable ssh-agent
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Mon, 21 Apr 2025 20:13:02 +0200 |
parents | 6ab26ddbf78d |
children |
line wrap: on
line source
function fish_right_prompt if not command -sq hg return 1 end set -l root (fish_print_hg_root) or return 1 # In stead of running this command, cat the branch and topic name from the .hg folder # echo (set_color yellow)(HGPLAIN= HGRCPATH= hg --config extensions.topic= log -r 'wdir()' --template='{fqbn}' 2>/dev/null) (set_color normal) set -l branch (cat $root/branch 2>/dev/null; or echo default) if set -l topic (cat $root/topic 2>/dev/null) set branch "$branch//$topic" end # TODO: add topic namespace when available echo (set_color green)"$branch "(set_color normal) end