How to customize PS1 prompt in KSH?  

Monday, October 18, 2010

eg:

>[/current/dir] >
>
>I'd like it to be:
>[/current/dir]

edit your .profile

export PS1=[`hostname`:'$PWD]^V^J
>'
where ^V is control-V and ^J is control-J to accomplish this.

AddThis Social Bookmark Button
Email this post


Design by Amanda @ Blogger Buster