Tuesday, October 14, 2014

Linux bash, change command prompt




To change command prompt in Linux bash:
modify .bashrc in home directory.
Original .bashrc:
 # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
After modifying .bashrc, run
bash

No comments:

Post a Comment