+ def bundle_prefix(self, bundle: BundleDetails) -> str:
+ colorz = [
+ fg('violet red'),
+ fg('red'),
+ fg('orange'),
+ fg('peach orange'),
+ fg('yellow'),
+ fg('marigold yellow'),
+ fg('green yellow'),
+ fg('tea green'),
+ fg('cornflower blue'),
+ fg('turquoise blue'),
+ fg('tropical blue'),
+ fg('lavender purple'),
+ fg('medium purple'),
+ ]
+ c = colorz[int(bundle.uuid[-2:], 16) % len(colorz)]
+ fname = bundle.fname if bundle.fname is not None else 'nofname'
+ machine = bundle.machine if bundle.machine is not None else 'nomachine'
+ return f'{c}{bundle.uuid[-8:]}/{fname}/{machine}{reset()}'
+