dotfiles-fish/functions/fish_right_prompt.fish

7 lines
223 B
Fish
Raw Normal View History

2024-10-25 11:48:49 +00:00
function fish_right_prompt -d "Write out the right prompt"
if set -q CONTAINER_ID
set distrobox_prefix "$(string replace -r -a '\b([\w])' '\U$0' "$CONTAINER_ID") "
end
echo -n -s $distrobox_prefix
end