diff options
| author | Franck Cuny <franck.cuny@gmail.com> | 2013-11-26 10:36:10 -0800 |
|---|---|---|
| committer | Franck Cuny <franck.cuny@gmail.com> | 2013-11-26 10:36:10 -0800 |
| commit | 8ddf2e94df70707b458528a437759b96046d3e01 (patch) | |
| tree | d442818d92d3c9c6f7fcdc92857a1228963849a1 /_posts/2008-08-08-customize-your-mysql-prompt.md | |
| parent | Don't need to use the IP in the makefile. (diff) | |
| download | lumberjaph-8ddf2e94df70707b458528a437759b96046d3e01.tar.gz | |
Huge update.
Moved all posts from textile to markdown. Updated all the CSS and
styles. Added a new page for the resume.
Diffstat (limited to '')
| -rw-r--r-- | _posts/2008-08-08-customize-your-mysql-prompt.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_posts/2008-08-08-customize-your-mysql-prompt.md b/_posts/2008-08-08-customize-your-mysql-prompt.md new file mode 100644 index 0000000..f023186 --- /dev/null +++ b/_posts/2008-08-08-customize-your-mysql-prompt.md @@ -0,0 +1,14 @@ +--- +layout: post +summary: In which we customize our MySQL prompt +title: Customize your MySQL prompt +--- + +To customize your MySQL prompt, create a .my.cnf file in your $HOME then add the following: + +{% highlight sh %} +[mysql] +prompt="\\u [\\d] >" +{% endhighlight %} + +Your prompt will now looks like this: `username [dabatases_name] >` |
