Skip to content

Instantly share code, notes, and snippets.

View hanneslsm's full-sized avatar

Hannes hanneslsm

View GitHub Profile
@hanneslsm
hanneslsm / .bash_profile
Last active October 4, 2021 06:53
My .bash_profile settings
# Change Prompt
# ------------------------------------------------------------
# export PS1="| \w @ \h (\u) \n| => "
# export PS2="| => "
if [ "`id -u`" -eq 0 ]; then
PS1="________________________________________________________________________________\n\[\033[m\]|\[\033[1;35m\]\t\[\033[m\]|\[\e[1;31m\]\u\[\e[1;36m\]\[\033[m\]@\[\e[1;36m\]\h\[\033[m\]:\[\e[0m\]\[\e[1;32m\][\W]> \[\e[0m\]"
else
PS1="________________________________________________________________________________\n\[\033[m\]|\[\033[1;35m\]\t\[\033[m\]|\[\e[1m\]\u\[\e[1;36m\]\[\033[m\]@\[\e[1;36m\]\h\[\033[m\]:\[\e[0m\]\[\e[1;32m\][\W]> \[\e[0m\]"