From 5331739895d6af6a05f9fb50b16874385c820be4 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 20 Mar 2015 05:44:34 +0100 Subject: Bash completion module. --- icevault | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'icevault') 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}); -- cgit v1.2.3