From 8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 10 Aug 2016 14:33:04 -0700 Subject: convert back to md --- posts/2008-08-08-customize-your-mysql-prompt.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 posts/2008-08-08-customize-your-mysql-prompt.md (limited to 'posts/2008-08-08-customize-your-mysql-prompt.md') 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..b63d45f --- /dev/null +++ b/posts/2008-08-08-customize-your-mysql-prompt.md @@ -0,0 +1,8 @@ +To customize your MySQL prompt, create a .my.cnf file in your $HOME then add the following: + +``` bash +[mysql] +prompt="\\u [\\d] >" +``` + +Your prompt will now looks like this: `username [dabatases_name] >` -- cgit v1.2.3