summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2018-11-28 05:35:39 -0800
committerAmjith Ramanujam <amjith.r@gmail.com>2018-11-28 05:35:39 -0800
commit2e9d73752ceb48ee7682632dbe40b597dfd4c8b8 (patch)
tree5f0a27ec843c62aeca2a237c38f11c85c3ec1835
parentfe7d19803434fb15c9951539d945cb0d27b42711 (diff)
Cleanup prompt specifiers.
-rw-r--r--litecli/liteclirc5
-rwxr-xr-xlitecli/main.py3
2 files changed, 2 insertions, 6 deletions
diff --git a/litecli/liteclirc b/litecli/liteclirc
index fd3344b..6e65e61 100644
--- a/litecli/liteclirc
+++ b/litecli/liteclirc
@@ -57,16 +57,13 @@ wider_completion_menu = False
# MySQL prompt
# \D - The full current date
# \d - Database name
-# \h - Hostname of the server
# \m - Minutes of the current time
# \n - Newline
# \P - AM/PM
-# \p - Port
# \R - The current time, in 24-hour military time (0–23)
# \r - The current time, standard 12-hour time (1–12)
# \s - Seconds of the current time
-# \t - Product type (Percona, MySQL, MariaDB)
-prompt = '\t :\d> '
+prompt = '\d> '
prompt_continuation = '-> '
# Skip intro info on startup and outro info on exit
diff --git a/litecli/main.py b/litecli/main.py
index acea4e5..3ab8bbd 100755
--- a/litecli/main.py
+++ b/litecli/main.py
@@ -59,7 +59,7 @@ PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
class LiteCli(object):
- default_prompt = "\\t :\\d> "
+ default_prompt = "\\d> "
max_len_prompt = 45
defaults_suffix = None
@@ -743,7 +743,6 @@ class LiteCli(object):
sqlexecute = self.sqlexecute
now = datetime.now()
string = string.replace("\\d", sqlexecute.dbname or "(none)")
- string = string.replace("\\t", sqlexecute.server_type()[0] or "litecli")
string = string.replace("\\n", "\n")
string = string.replace("\\D", now.strftime("%a %b %d %H:%M:%S %Y"))
string = string.replace("\\m", now.strftime("%M"))