Join the community today
Register Now

Server Name

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

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:58 PM
    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,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:58 PM
    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,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:58 PM
    1.13.x
    MariaDB 10.1.x
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    35,522
    7,833
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,074
    Local Time:
    8:58 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Agree Agree x 1
  5. Jimmy

    Jimmy Premium Member Premium Member

    1,350
    285
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +695
    Local Time:
    6:58 PM
    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.
     
..