summaryrefslogtreecommitdiff
path: root/posts/2008-08-08-customize-your-mysql-prompt.org
blob: 8dd7d740193b85713620a62f0358a806be486459 (plain) (blame)
1
2
3
4
5
6
7
8
9
To customize your MySQL prompt, create a .my.cnf file in your $HOME then
add the following:

#+BEGIN_SRC sh
    [mysql]
    prompt="\\u [\\d] >"
#+END_SRC

Your prompt will now looks like this: =username [dabatases_name] >=