Need some scripting help - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7) +--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32) +--- Thread: Need some scripting help (/showthread.php?tid=2546) |
Need some scripting help - jacatone - 01-08-2016 I'm using the following command line to make my username in light red. export PS1="\[\e[1;31m\][\u@\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\][\u@\h\w]\$ \[\e[0m\] " Re: Need some scripting help - miken242 - 04-27-2016 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 - miken242 - 04-28-2016 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 |