• Table of Contents
  • RSS
  • Get New Hacks by Email

Linux 101 Hacks

06. Colorful Shell Prompt Using PS1

Hack 43. Use shell script inside PS1 variable

by Ramesh

Hack 42. Use bash shell function inside PS1 variable

by Ramesh

Hack 41. Create your own prompt using the available codes for PS1 variable

by Ramesh

Hack 40. Change the prompt color using tput

by Ramesh

Hack 39. Display multiple colors in the prompt

by Ramesh

Hack 38. Change background color of the prompt

by Ramesh

Hack 37. Change foreground color of the prompt

by Ramesh

Hack 36. Display output of any command in the prompt

by Ramesh

Hack 35. Display current time in the prompt

by Ramesh

Hack 34. Display username, hostname and basename of directory in the prompt

by Ramesh

  • Linux 101 Hacks Book

    Bash 101 Hacks Book

    Sed and Awk 101 Hacks Book

    Vim 101 Hacks Book

    Nagios Core 3 Book

  • LINUX 101 HACKS – CHAPTERS

    • 01. CD Command (6)
    • 02. Date Manipulation (5)
    • 03. SSH Client Commands (5)
    • 04. Essential Linux Commands (12)
    • 05. Linux Prompts (5)
    • 06. Colorful Shell Prompt Using PS1 (10)
    • 07. Archive and Compression (6)
    • 08. Command Line History (15)
    • 09. System Administration Tasks (11)
    • 10. Apachectl and HTTPD Examples (8)
    • 11. BASH Scripting (5)
    • 12. System Monitoring and Performance (13)
    • 13. Bonus Hacks (45)

Copyright © 2009–2012 Ramesh Natarajan. All rights reserved | Terms of Service
Questions or Comments