diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 05:44:34 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-20 05:50:30 +0100 |
commit | 5331739895d6af6a05f9fb50b16874385c820be4 (patch) | |
tree | 1a706c65320257b87d16169e8b51b207aab1ce2a /icevault | |
parent | f5a93532349379425d4e3f7669ab4ac9b08052bc (diff) |
Bash completion module.
Diffstat (limited to 'icevault')
-rwxr-xr-x | icevault | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}); |