/[smecontribs]/rpms/advancedprompt/contribs9/coloured.sh
ViewVC logotype

Annotation of /rpms/advancedprompt/contribs9/coloured.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Tue Nov 21 00:21:49 2017 UTC (7 years ago) by jpp
Branch: MAIN
CVS Tags: advancedprompt-0_1-2_el6_sme, HEAD
Changes since 1.1: +4 -0 lines
Content type: application/x-sh
* Mon Nov 20 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
- added missing # and $

1 jpp 1.1 # set prompt: ``username@hostname:/directory $ ''
2    
3     PS1="[\[\e[1;32m\]\u\[\e[m\]@\[\e[0;31m\]\H.$(dnsdomainname)\[\e[m\]:\[\e[0;33m\]\w\[\e[m\]]"
4 jpp 1.2 case `id -u` in
5     0) PS1="${PS1}# ";;
6     *) PS1="${PS1}$ ";;
7     esac
8 jpp 1.1

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed