The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change BASH prompt

Discussion in 'General Discussion' started by DreamPhysix, Nov 11, 2011.

  1. DreamPhysix

    DreamPhysix Well-Known Member

    Joined:
    Sep 30, 2009
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    I'm running CentOS and cPanel (obviously) and I want to change the BASH prompt permanently for the entire server. I followed instructions for CentOS, changing /etc/bashrc's PS1 variable, and exporting PS1=, but when I log out, it gets reverted to the default. This process works fine on Debian, and the sites I read said it should work the same on CentOS. Is there something unique in cPanel that is keeping me from editing the prompt normally? I want the prompt to display the following: username@hostname:PATH$ (same as debian style). preferably where hostname is the first part of the domain name (e.g. just the server name, or i can put it in plaintext instead, whatever). Thanks!
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Try editing ~/.bashrc instead.
     
Loading...

Share This Page