How to customize PS1 prompt in BASH?
Monday, October 18, 2010
Edit your .bashrc
output:
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.
Posted in bash, Unix by Alex Yap | 0 comments
Email this posteg:
>[/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 | 0 comments
Email this post