I have zsh setup to do case insensitive completion but somehow file matching for git completion remains case sensitive:
% zsh -f
% autoload -U compinit && compinit
% zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=*…
I have the following alias in my ~/.zshrc:
~ which pulseaudio-restart
pulseaudio-restart: aliased to killall pulseaudio && pulseaudio --start
Is it possible to configure Zsh in a way that typing restart will output me pulseaudio-restart as a…
My system's git autocompletion is pretty good, but lacks completion of at least git difftool and git diffmerge. I mean that if I type git diff on my prompt what I get is the following:
$ g diff
diff -- show changes between commits,…
I track my billable hours. Every item has a description and a number of tags for different clients, projects etc.
Recently I added zsh completion for these tags. This is what I have in my zsh autocompletion file now:
_arguments "*:tags:( $(cat…
Basically, I'm wondering if its possible to do this:
#compdef foo
_arguments \
'--arg=[Description of --arg [With square brackets in the string!]]' \
without getting an invalid option error due to the nested square brackets?
I've tried all…
What I want:
cd c/ra completes to ~/code/rails-app and cd c/ shows a list of dirs within ~/code
What I currently have:
c ra completes to c rails-app if I have a directory ~/code/rails-app and c shows a list of dirs within…
In my .zshrc I have
autoload -Uz compinit
compinit
zstyle ':completion:*' menu yes select interactive
zstyle ':completion:*' insert-unambiguous yes
My desired behavior is the following: suppose I have a folder with fileA.txt, fileB.txt,…
Does bash partial/substring file completion similar to what zsh does?
That is, instead of requiring the user to enter a prefix of the filename, then tab; the user can also enter a substring of the filename, then tab.
Say a directory contains a file…
I have a simple command with a couple sub commands which I would like to create a zsh code completion script for. I have read many web sites, but very confused.
My command (and sub commands) are:
stx ls
stx clean
stx start
stx stop
How can I create…
I was experimenting with custom git subcommand completion:
I am trying to extend the completion for git commit -m or git commit --message.
$HOME/.zsh/completions/_git-foo (this path is added to fpath fpath+=~/.zsh/completions)
#compdef…
After installing kubernetes-cli via homebrew in a mac with zsh, the kubernetes auto complete is not working completely or in full. Only the first tab works and not the second tab onwards. Example, if I type kubectl [TAB], it displays the sub…
I have a function mycmd to launch a program that I wrote. The program needs the first argument to be foo, ssh or ls. The second argument depends on the first argument as follows,
foo -> No second argument
ssh -> Something to ssh to
ls -> A file
I…
I used for years in openSuSE the:
#compdef w
_files -W ~/work -/
function to auto-complete the directory names in my ~/work dir.
It does not work in Ubuntu zsh -v 4.3.11, when I hit TAB after w I got directories from my home directory.
What's…
I enabled zsh completion and added fzf-tab via zinit. It works as expected. I added some custom/extra completions e.g., aws cli and it also worked as expected.
However, when I tried to enable the completion for dotnet as recommended it didn't work…