summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@netflix.com>2020-03-29 14:18:34 -0700
committerAmjith Ramanujam <amjith@netflix.com>2020-03-29 14:18:34 -0700
commitedbb90eab6c2752e886af9ec01cfc889e449bdce (patch)
tree330aa21a869a0f49c2ae45022e9e70da600f0c7d
parentd444db412bf3d9e1f5920319c844fd484786226e (diff)
Add an example for how to use the colored prompt.pgclirc-color-example
-rw-r--r--pgcli/pgclirc1
1 files changed, 1 insertions, 0 deletions
diff --git a/pgcli/pgclirc b/pgcli/pgclirc
index 13380280..220677dd 100644
--- a/pgcli/pgclirc
+++ b/pgcli/pgclirc
@@ -127,6 +127,7 @@ less_chatty = False
# \n - Newline
# \dsn_alias - name of dsn alias if -D option is used (empty otherwise)
# \x1b[...m - insert ANSI escape sequence
+# eg: prompt = '\x1b[35m\u@\x1b[32m\h:\x1b[36m\d>'
prompt = '\u@\h:\d> '
# Number of lines to reserve for the suggestion menu