Discover Centmin Mod today
Register Now

Server Name

Discussion in 'Feature Requests & Suggestions' started by Jimmy, Feb 1, 2017.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    9:57 AM
    1.13.x
    MariaDB 10.1.x
    I'm having an issue with long entries not wrapping to a new line. Not sure what is the issue. When I omit the PS1 the text wraps fine when I use what is below, it wraps on the same line.

    Code:
    PS1="\e[32m[\[email protected]\h \W]\\$ \e[m"

     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    9:57 AM
    1.13.x
    MariaDB 10.1.x
    This seems to solve the line wrap issue

    Code:
    # nano /root/.bashrc
    Color Change
    Code:
    PS1="\[\e[0;32m\][\[email protected]\h \W]\\$ \[\e[0m\]"
    Color Change w/ Time
    Code:
    PS1="\[\e[0;32m\][\A][\[email protected]\h \W]\\$ \[\e[0m\]"
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    9:57 AM
    1.13.x
    MariaDB 10.1.x
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    37,305
    8,151
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,547
    Local Time:
    12:57 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Agree Agree x 1
  5. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    9:57 AM
    1.13.x
    MariaDB 10.1.x
    @eva2000 you should totally put on of the blinking ones for your digitalocean referral in the CMM menu. That would be awesome.
     
..