dotfiles/dot-config/fish/functions/fish_right_prompt.fish
2024-10-25 16:48:49 +05:00

7 lines
223 B
Fish

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