This blog moved to medium->https://medium.com/@cocoamaemae

Thursday, February 25, 2016

How to change Linux prompt display

OS: Linux
Shell: bash

In $HOME/.bash_profile or $HOME/.bashrc, write the below.

# bash default prompt name
case $TERM in
kterm|xterm|mlterm|cygwin|vt102|screen)
export PS1="[centos7.0_devel]$ "
esac


PS1 is custom prompt name. If you run Linux prompt.

No comments:

Post a Comment

Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...