DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 21st September 2017
mefisto mefisto is offline
Shell Scout
 
Join Date: Sep 2017
Posts: 97
Default SOLVED: ksh color coding prompt problem

Greetings all,

in order to have a reminder when switching to root, I am trying to colour code the prompts. It is working for the user, but not for root. I have copied the working prompt from the ~/.profile to the /root.profile:
Code:
export PS1='\e[0;31m\u@\h\e[00m:# '
but it does not work when I su to root. I have checked $TERM and it shows xterm.

Interestingly, when I log out of Openbox session and log in as root, the FVWM terminal shows the root's prompt correctly.

Any advice would be appreciated.

Kindest regards,

M

Last edited by mefisto; 23rd September 2017 at 10:13 AM.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Color Prompt in OpenBSD. tetrodozombie Guides 18 13th April 2013 02:02 PM
Adobe's new open source font for coding J65nko News 3 28th September 2012 10:46 AM
Nicer Prompt with ksh on 5.0 nihonto NetBSD Installation and Upgrading 8 12th October 2009 08:49 PM
Opera Font and Dialog Color Problem roddierod FreeBSD General 4 26th September 2008 02:39 PM
what to do at mountroot prompt? Sunsawe FreeBSD General 13 5th June 2008 08:06 AM


All times are GMT. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick