You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
Need some scripting help

Author (Read 2696 times)

0 Members and 1 Guest are viewing this topic.

Need some scripting help
« on: January 07, 2016, 10:33:34 PM »
 

jacatone

  • New to Forums
  • *
  • 27
    Posts
  • Reputation: 2
  • Linux Lite Member

  • CPU: P4

  • MEMORY: 1Gb

  • VIDEO CARD: Radeon 9550
I'm using the following command line to make my username in light red.

export PS1="\[\e[1;31m\][\[email protected]\h\w]\$ \[\e[0m\] "

When I try to make my change permanent in the .bashrc file, it just screws it up. What should I enter into the .bashrc file?

old command:
export PS1="\[\e[1;31m\][\[email protected]\h\w]\$ \[\e[0m\] "
 


Re: Need some scripting help
« Reply #1 on: April 27, 2016, 11:48:36 AM »
 

miken242

  • New to Forums
  • *
  • 17
    Posts
  • Country: gb
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 3.0 64bit

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia
This can be done from the terminal menu
edit ....preferences
click on foreground and choose your colour
ok  saves it

hope this helps
mike
 

Re: Need some scripting help
« Reply #2 on: April 28, 2016, 12:17:32 PM »
 

miken242

  • New to Forums
  • *
  • 17
    Posts
  • Country: gb
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 3.0 64bit

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia

LS_COLORS=$LS_COLORS:'di=0;36:fi=0;37' ; export LS_COLORS
#terminal prompt
 export PS1='\[\e[1;31m\]\u @ \h \w ->\n\[\e[1;36m\] \@ \d \$\[\e[m\] '
This is a line from my .bashrc file which produces a double line prompt with time and date underneath in cyan and the user name hostname in red

hope this is more useful to your script request

cheers mike
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements