Why doesn’t my bash prompt update?

You need a backslash on the $ so it isn’t expanded immediately. (Compare to the `…`, which is a different way of writing $(…).) export PS1=”${RESET}${YELLOW}\u@\h${NORMAL} \`${SELECT}\` ${YELLOW}\w \$(__git_ps1) >${NORMAL} ” I would agree with @MikeSep about using single quotes, but it’s actually a bit more optimal to let the colors and such be substituted … Read more

(Mac) -bash: __git_ps1: command not found

You’ve installed the version of git-completion.bash from master – in git’s development history this is after a commit that split out the __git_ps1 function from the completion functionality into a new file (git-prompt.sh). The commit that introduced this change, which explains the rationale, is af31a456. I would still suggest that you just source the version … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)