aboutsummaryrefslogtreecommitdiffstats
path: root/icevault
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-20 05:44:34 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-03-20 05:50:30 +0100
commit5331739895d6af6a05f9fb50b16874385c820be4 (patch)
tree1a706c65320257b87d16169e8b51b207aab1ce2a /icevault
parentf5a93532349379425d4e3f7669ab4ac9b08052bc (diff)
Bash completion module.
Diffstat (limited to 'icevault')
-rwxr-xr-xicevault7
1 files changed, 7 insertions, 0 deletions
diff --git a/icevault b/icevault
index 7127c23..45be1e0 100755
--- a/icevault
+++ b/icevault
@@ -552,6 +552,13 @@ if ($command eq '_complete') {
exit;
}
+elsif ($command eq '_geturi') {
+ # used internaly for auto-completion
+ usage(1) if @ARGV;
+ print $LOCALE->encode( &connect($CONFIG{socket}) ), "\n";
+ sendCommand 'QUIT';
+ exit;
+}
elsif ($command eq 'insert') {
usage(1) unless $#ARGV < 1;
my $uri = &connect($CONFIG{socket});