This may be a bug or misfeature in zsh, but I don't know it that well and I may be misunderstanding.
compinit (the function that initializes completions) runs compaudit to enforce a security model whereby it will only load completion functions from…
I was very excited about zsh but I occurred a big problem.
Autocompletion for hg update doesn't work for me. I did include zsh_completion file (from newest mercurial source) in my .zshrc file like this (after moving to home…
I'm working on a completion for a shell program I have and I'd like to be able to provide metadata descriptions for the completion
For example
complete-this f
foo - "some description"
baz - "some other description"
And if "foo" is chosen,…
Currently using ZSH with prezto on OSX (10.10.3) and I am having issues with the tab completion. I have always been able to hit the tab key after typing either:
$ cd ~
$ cd ~/
and I would get a directory menu with the contents of my users home…
My goal is to type client air tab and complete the list of clients i have within my ~/clients directory.
Since hopefully my client list will grow i don't want to hardcode alias commands anymore but use client that will handle the cd…
I am currently switching from csh to zsh I am writing a .zshrc trying to get all the options I am used to in this new shell.
I use autocd (to go into a directory just typing its name (without the cd command), and I wonder if it is possible that my…
I can't seem to figure out a way to call a zsh completion function that I can tap into and provide a return result of available items. For example, I'd like to be able to call out to a web service and return back an array of potentials.
I've tried…
I am using the awesome zsh framework oh-my-zsh. Every day I hit gc which is an alias for git commit I hit and it gives me the correct files to commit. I am really interested to know how that is implemented, so I can implement my own idea…
I want to write zsh completions for a program with the following calling convention:
program [generaloptions] operation [operationoptions]
where operation is one of --install, --upgrade...
What I have so far, are the general options and the…
I created a command line ruby gem and would like to have bash or zsh completion. I created and versionned them, but I have to source them manually.
Is there a common way to execute scripts after the gem install, for example to edit the bashrc or…
This command works:
compadd - '-test1 text' '-test1 qwer'
This command works too:
compadd -Q - '-test1 text' '-test2 qwer'
But if first words are the same, then the command does not works:
compadd -Q - '-test1 text' '-test1 qwer'
How can I fix it?
I am trying to write a zsh completion function for an internal script, and one of the script's options is --no-fsck. This is the abbreviated version of what i'm doing in the completion file:
_arguments \
'--no-fsck[skips e2fsck]' \
&& return…
Currently I am using zsh and every time I use tab completion for directories it will add a forward slash at the end. This creates a problem when using commands like rsync, which differenciates directory arguments that have a forward-slash. So every…
I can't count the number of times I've typed: source en only to be left with a bunch of garbled text on the screen because it sourced the program env instead of the local env.sh.
I tried making a simple function to detect this particular use…
Using bash I did like to do something like this:
$ l
file15165
file23132
file31351
xyzfile
$ $CMD f
(f gets completed to "file", I type "*", [23] or whatever)
$ $CMD file*
This way I am sure the command is executed on all the files I…