Welcome to Centmin Mod Community
Become a Member

Server Name

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

  1. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    4:03 AM
    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[\u@\h \W]\\$ \e[m"
     
  2. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    4:03 AM
    This seems to solve the line wrap issue

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

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    4:03 AM
  4. eva2000

    eva2000 Administrator Staff Member

    58,917
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:03 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  5. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    4:03 AM
    @eva2000 you should totally put on of the blinking ones for your digitalocean referral in the CMM menu. That would be awesome.