Bash prompt changed in terminal -


suddendly bash prompt changed

[80-254-70-241]myusername @ ~ $

when in home directory.

i have following command in .bash_profile export ps1="\[\033[32m\][\h]\u @ \w \$\[\033[0m\]

i think expression in square brackets supposed name of current directory.

what number 80-254-70-241 mean , how change back?

the string "80-254-70-241" comes parameter "\h", denotes hostname. think got ip , hostname dhcp prompt changed accordingly.

if think annoying, can replace "\h" preferred hostname (hardcoded).


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -