Skip to content

Instantly share code, notes, and snippets.

@zz-jason
Last active January 4, 2023 05:30
Show Gist options
  • Save zz-jason/7f94c03cf93b74cf71175a0d87351346 to your computer and use it in GitHub Desktop.
Save zz-jason/7f94c03cf93b74cf71175a0d87351346 to your computer and use it in GitHub Desktop.
prompts

bash

export PS1='\n\033[0;33m\u@10.150.180.208:\033[0;34m\w\033[0;32m$(__git_ps1 " (git:%s)") \033[0;39m\n$ '

mysql

export mysql_local = 'mysql --default-character-set=utf8 -h 127.0.0.1 -P 3306 -u root -D test --local-infile --prompt="MySQL(\\u@\\h:\\d) > "'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment