Help for this page

Select Code to Download


  1. or download this
    export PS1=$( make_a_red_prompt.pl )
    
  2. or download this
    #!/usr/bin/perl
    use strict; use warnings;
    my $cmd = q( \e[0;31m[\u@\h \W]$ \e[m );
    print $cmd , "\n";
    
  3. or download this
    eval $( export_a_red_prompt.pl )
    
  4. or download this
    #!/usr/bin/perl
    use strict; use warnings;
    my $cmd = q( export PS1="\e[0;31m[\u@\h \W]$ \e[m " );
    print $cmd , "\n";
    
  5. or download this
    #!/usr/bin/perl
    use warnings; use strict;
    use Term::ANSIColor;
    my $prompt = colored ("Prompt", 'bold red on_white');
    print "export PS1=$prompt\n";