petobens / trueline

Fast and extensible bash powerline prompt with true color and fancy icon support
MIT License
385 stars 36 forks source link

Add distro icon segment for diverse Linux flavors in True Line #49

Closed sifisKoen closed 9 months ago

sifisKoen commented 9 months ago

Description

This pull request introduces a new function _trueline_distro_icon_segment to the True Line prompt, enhancing its ability to display distinct icons for various Linux distributions.

Details

The function dynamically sets icons for Ubuntu, Fedora, Debian, and Arch, with a generic icon for other Linux distributions. This feature allows users to easily identify their current operating system environment directly in the shell prompt, improving user experience and providing quick visual signal.


I welcome any feedback or suggestions for improvement and look forward to your thoughts on integrating this feature into the main codebase.

petobens commented 9 months ago

Please update the README accordingly (stating that this is an optional segment)

sifisKoen commented 9 months ago

Hello @petobens thank you for your response. :smile: I did the needed changes as you suggested in the trueline.sh

petobens commented 9 months ago

Thanks!