Home

Awesome

PS1Palette

PS1Palette is a Bash script designed to simplify the process of customising the command prompt (PS1) in Bash. It allows users to easily change the colour of their terminal prompt without needing to understand the complex syntax of PS1 colour codes.

Examples

<p align="center"> <img src="examples/example1.png" alt="example1.png"> <img src="examples/example2.png" alt="example2.png"> <img src="examples/example3.png" alt="example3.png"> </p>

Features

Usage

  1. Clone the repository or download the ps1palette.sh script.
git clone https://github.com/WDoyle123/ps1palette.git
  1. Make the script executable:
chmod +x ps1palette.sh
  1. Run the script: ./ps1palette.sh
  2. Choose between full or segmented colouring options.
  3. For full colouring, select a colour for the entire PS1.
  4. For segmented colouring, select colours for each segment (Username, Hostname, Directory, Prompt Symbol).
  5. Confirm to apply changes to your current session and save them to .bashrc.

Colour Prefixes

Available Colours

Notes and Disclaimer

Contributing

Feel free to fork, modify, and send pull requests or open issues for any improvements or bug fixes.

License

see LICENSE