I have 2 folders that contains folders
/me/foo/:
a/
b/
c/
/me/bar/:
c/
d/
e/
I want to create completion function for command baz so that
$ baz [tab]
gives completion arguments as follow
a b c d e
notice the duplicate c written only…
I'm trying to create a ZSH auto completion script for Symfony's Console, I almost finished it but I block in the last part. I need to create an array thanks to a function returns, but I don't know how to process.
Here's the code I…
I'm trying to write a completion method for fsharpi (F# interactive), which has options like the following:
--use: Use the given file on startup as initial input
--debug:{full|pdbonly} Specify debugging type: full, pdbonly.…
I'm writing an auto-completion script for an image viewer application. Is there a way to specify to list only files in the directory that are of a certain mime? I.e., all types of mime image.
What I am doing now:
_arguments -C \
... # Handle…
I installed my Mac with a case sensitive filesystem.
Everything is fine, other than Zsh not being as fluent as it used to be. I've confirmed the Oh-My-Zsh variable CASE_SENSITIVE is commented out in .zshrc but it's still failing to find folders of…
I am using zsh shell and it has become very slow running any commands such as 'ls' 'cd' in directories that are Git Repo. In bash it works fine and fast. I also notice that the title of shell displays 'git' with spinning wheel on side. it appears…
Is there a way to use tab key in bash or zsh to trigger a snippet, like e.g. Sublime Text does it?
For example, if I have configured that x should be expanded to ~/projects/one/two/x/, so:
$ cd x[TAB]
would turn into
$ cd ~/projects/one/two/x/
I tried to find certain files by filename creation in zsh (although I read the manpage multiple times I did not really now what I was doing), but I think something went terribly wrong:
After I typed echo 10-02-2015.*(), I was prompted to type…
Suppose I have the file tree
-A_dir/
- a_test_file1
Doing mv a_test_file1 a_test_file2 results in an annoying correction query. The second argument of mv should never be corrected, as it may or may not point to an existing node on the filesystem.…
I'm trying to create a Capistrano mutilstage completion for ZSH:
$ cap |
production staging
$ cap production |
deploy -- Deploy a new release
deploy:bundle -- Bundle
...
Completion code:
#compdef…
I'd like to write a function that makes it easier to use parameters of the previous command more easily, such as !:1. I've read that in bash this can be accomplished with:
set -o history
set -o histexpand
So how could I write a zsh function that…
I want to write completions for a program that takes --with-PROG= and --PROG-options as optional arguments. PROG may be one of different programs. There are many different programs, so I'd like to avoid manually writting out an options for each…
I have a folder with materials for university study, sorted by semesters:
$ ls University
semester1 semester2 semester3 semester4
I'm trying to make one of them the named directory, and I want zsh to allways pointed to directory ending with highest…
I have a ZSH completer that provides the expected completions, but provides them in lexicographical order, as opposed to the order in which they were added via compadd:
_matcher_complete() {
(git ls-files 2>/dev/null || find .) |…
for example, when i start terminal and type brew install spot
and press TAB - nothing, only dir like a Desktop/, but when i exec zsh everything magically starts working