summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-06-16 23:39:01 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2015-06-16 23:39:01 -0700
commitb8ce97e149be470b2965014a42c7120bb4af0f4e (patch)
treef4353559a10508ec8adcc7bbd4e4288f4f31ff60
parentb016b9f486fc2bf28a1b1aa5d626510fbf65c92f (diff)
Add \refresh to manually refresh auto-completions.
-rwxr-xr-xpgcli/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 5abe8015..e8c6e618 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -87,6 +87,8 @@ class PGCli(object):
aliases=('use', '\\connect', 'USE'))
special.register_special_command(self.refresh_completions, '\\#',
'\\#', 'Refresh auto-completions.', arg_type=NO_QUERY)
+ special.register_special_command(self.refresh_completions, '\\refresh',
+ '\\refresh', 'Refresh auto-completions.', arg_type=NO_QUERY)
def change_db(self, pattern, **_):
if pattern is None: