Name: puppet-bash
Owner: Inuits
Description: A puppet module to manage bash PS1
Created: 2015-08-06 20:32:13.0
Updated: 2015-08-06 20:32:14.0
Pushed: 2015-08-06 20:36:59.0
Homepage: null
Size: 100
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The initial goal of this module is to manage PS1 prompt of bash shell, in order to change the hostname by the FQDN.
This module adds a '/etc/profile.d/PS1.sh' script wich contains the right PS1.
\H in the PS1 prompt prints the hostname instead of the FQDN on some hosts. This is due to /etc/hostname or /etc/sysconfig/network configuration.
We use $::fqdn instead.
The PS1 is defined inside each user's bashrc. I don't want to overwrite the bashrc in the skeleton directory, so until I find a beter solution, the FQDN is printed only for the root user.
s{
ash':
show_fqdn => true,