Search Flipkart

Tuesday, June 28, 2011

Changing $PS1 in Linux Mint

Changing $PS1 in Linux Mint:::

By default Linux mint has

$PS1=${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]

for the normal user..

The problem lies in w where shows the full directory PATH ..
If u like showing full path then leave it as it is .
And if don't like showing full path and find less space or your commands then CHANGE this to W then it will show only directory name not the full PATH NOW the new
$PS1=${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \W \$\[\033[00m\]

to make changes to $PS1 you have to make change in the file /etc/bash.bashrc

No comments:

Post a Comment