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.
This blog shall contain all the tips in using unix, windows, linux, programming tricks in perl, c++, scripting like awk, sed and etc. This shall be consider as a technical blog.
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.
Posted in Unix by Alex Yap
Email this post
0 comments: to “ How to customize PS1 prompt in KSH? ”
Post a Comment