I have a custom script that I pass an argument into that will create a directory in a specific folder and then cd to it, unless it already exists, then it just cd to it.
I added a zsh autocompletion that way if I want to use the command to just jump…
When I want to traverse between directories, zsh is throwing a screenfull of tab completions. It's making the experience very bad. How can I get only few suggestions?
I'm new to zsh and I'm trying to figure out how to get tab completion to work so that when I typed part of the name of a file that's not in the current directory zsh will complete it.
The idea is that I have some scripts in ~ and c:\MyStuff\bin and…
I try to setup my zsh-completions. I also use oh-my-zsh .
A lot of shell commands provide a some_command completion zsh
and they often suggest sourcing it directly in .zshrc like so:
source <(kubeone completion zsh)
source <(tilt completion zsh)
…
I have an autocompletion script, with this snippet:
_arguments \
'-project[project file]:project:->projects'
...
case "$state" in
...
projects)
local -a projects
projects=(*.project)
_multi_parts / projects
echo…
My machine is a M1 Mac mini running Big Sur.
I am trying to get git completion to work in the default terminal which uses a zsh shell.
This is what I am trying and expecting. Screenshot below.
I am able to get completion to work, but not exactly as…
I am writing a zsh completion function for a shell script/program I wrote. At some point in the completion process I want to use the completion function of another command to handle the rest of the completion.
How can I find out what the completion…
Is there a way to check if the tab completion menu is open in ZSH?
I am asking this question because I want to bind the space key to accept-search so that I can accept completion with the space key, but I want to do it in a way that doesn't…
I have some custom completion I've been working on and am stuck. It extends existing completion scripts with some custom options. The full file can be found here https://github.com/rothgar/k/blob/zsh-completion/completions/zsh/k
I have a custom…
in bash, if i enter:
mkdir /tmp/foo
cd !$
bash substitutes /tmp/foo for the bang-dollar, and executes the command
if i do the same in zsh, zsh fills in /tmp/foo for the bang-dollar and shows me the resulting command, pausing to let me again hit …
My .zshrc looks like this:
source /Users/crmpicco/zsh-git-prompt/zshrc.sh
PROMPT="%B%n@MBP%~%b$(git_super_status) %# "
My prompt looks like this:
crmpicco@MBP/var/www/belleisle/symfony(:|✔) %
if I open a new tab in the Terminal the git branch is…
I am trying to write a tab-completion script for borg.
So far, I have managed to define completions for borg itself, as well as borg key with its subcommands and borg benchmark with its singular subcommand. However, I am now trying to define…
I would like to write a ZSH completion where one of the arguments must be an executable file.
While :_files works well enough to list all files, there does not appear to be an easy way to list only executable files. The glob expression ls *(*) does…
So, to better explain what I'm asking for, I am writing a zsh plugin for quickly navigating up directories and I want to offer the ability to traverse into a directory by specifying a starting directory in $PWD.
For example, if I am in a directory…