* Using custom completion...
@ 2006-03-28 23:47 Christopher Browne
2006-03-29 10:13 ` Dominic Mitchell
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Browne @ 2006-03-28 23:47 UTC (permalink / raw)
To: zsh-users
Dominic Mitchell had set up a sample completion for psql:
http://www.zsh.org/mla/users/2004/msg01006.html
[it's pretty obvious which bits are script, and which aren't]
I'm not entirely sure what I need to do to get it operating.
It appears as though an appropriate place to stow it on my system is thus:
/usr/share/zsh/4.3.2/functions/Completion/Unix/_psql
I'm not sure if I need to run anything extra to get it to be noticed;
it doesn't seem to be turning quite right, as I'm seeing ill output:
_arguments:comparguments:208: invalid argument:
cbbrowne@dba2:~>
I'd be more than happy to help contribute whatever assistance to
getting bits of it working that I can; I'm in a pretty "psql-happy"
environment, so improving globbing on this is no bad thing ;-).
--
http://www3.sympatico.ca/cbbrowne/linux.html
"The true measure of a man is how he treats someone who can do him
absolutely no good." -- Samuel Johnson, lexicographer (1709-1784)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using custom completion...
2006-03-28 23:47 Using custom completion Christopher Browne
@ 2006-03-29 10:13 ` Dominic Mitchell
0 siblings, 0 replies; 2+ messages in thread
From: Dominic Mitchell @ 2006-03-29 10:13 UTC (permalink / raw)
To: Christopher Browne; +Cc: zsh-users
On Tue, Mar 28, 2006 at 11:47:27PM +0000, Christopher Browne wrote:
> Dominic Mitchell had set up a sample completion for psql:
> http://www.zsh.org/mla/users/2004/msg01006.html
> [it's pretty obvious which bits are script, and which aren't]
>
> I'm not entirely sure what I need to do to get it operating.
>
> It appears as though an appropriate place to stow it on my system is thus:
> /usr/share/zsh/4.3.2/functions/Completion/Unix/_psql
I install it on a per-user basis:
% ls ~/libexec/zsh/_pgsql_utils
/home/dom/libexec/zsh/_pgsql_utils
Then I've got this in my ~/.zshrc:
fpath=( ~/libexec/zsh $fpath );
Note that it has to come before you call compinit.
> I'm not sure if I need to run anything extra to get it to be noticed;
> it doesn't seem to be turning quite right, as I'm seeing ill output:
> _arguments:comparguments:208: invalid argument:
> cbbrowne@dba2:~>
>
> I'd be more than happy to help contribute whatever assistance to
> getting bits of it working that I can; I'm in a pretty "psql-happy"
> environment, so improving globbing on this is no bad thing ;-).
It does work well for me here, under Debian and FreeBSD. But if it's
not working correctly, I'll gladly do what I can to make it work for
you.
A quick way to check whether or not it's working is to press ^Xh after
typing in "psql ". You should get output like this:
% psql
tags in context :completion::complete:psql::
argument-1 options (_arguments _psql _pgsql_utils)
-Dom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-29 10:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-28 23:47 Using custom completion Christopher Browne
2006-03-29 10:13 ` Dominic Mitchell
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).