zsh-completion Questions

2

Solved

I am using zsh with completion turned on. When I try to tab-complete, sometimes the command hangs for a long time. After a few seconds it completes and correctly presents my options. On the other h...
Gibb asked 23/7, 2023 at 1:51

3

I'm using zsh and oh my zsh, and I'm a bit confused about where to put completion files. For example, when installing kind, I'm doing this: brew install kind kind complete zsh > ~/.oh-my-zsh/cac...
Report asked 13/3, 2022 at 12:19

1

I've been searching online for a lot of hours, puling an all nighter because i got so lost down this rabbit hole :D but i'm having trouble finding examples with working code. I have a bash script t...
Sequacious asked 23/4, 2022 at 8:12

8

Solved

No matter what I try and do I can't seem to make git tab/auto completion work in my zsh shell. I've downloaded the bash-completion script and the zsh-completion one and followed the instructions, b...
Blackthorn asked 1/7, 2014 at 15:20

10

Solved

I have been using oh-my-zsh for a while now and the docker plugin as recently stopped working for me for some reason. I checked my ~/.zshrc file and the plugin is included plugins=(git colored-ma...
Open asked 25/5, 2016 at 4:58

8

Solved

I've found hints at there being command completion available for bash[1] for the Azure CLI (az command), but I have not found any indication on how to install/enable that for zsh. Anyone know how t...
Bedaub asked 14/3, 2018 at 9:0

4

I have a Git alias update that I would like to outfit with branch-name completion. The alias is defined like so: [alias] update = "!f() { git push . origin/$1:$1; }; f" (It updates a local trac...
Postfree asked 12/11, 2018 at 21:25

4

Solved

I am new at zsh. I've installed the plugin zsh-autosuggestions in oh-my-zsh using instruction mentioned here. I am using Linux (Fedora 26). What my problem is I want to change the color of the te...
Crowl asked 15/11, 2017 at 14:54

2

Solved

I have written a command-line tool that uses sub-commands much like Mercurial, Git, Subversion &c., in that its general usage is: >myapp [OPTS] SUBCOMMAND [SUBCOMMAND-OPTS] [ARGS] E.g. &...
Calve asked 25/1, 2012 at 9:57

1

Solved

compdef cmd1=service can be used to define a completion alias, however, that works only when the arguments are going to be the same. For example, consider a helper script which rewrites some argume...
Rosemare asked 3/7, 2022 at 6:51

1

On MacOS Big Sur 11.3, here is my .zshrc. I would like to get the latest modified or create files and directories near to the prompt (sorted from the most recent up to the oldest ones). Here my cur...
Hallie asked 19/11, 2021 at 21:45

2

Solved

With _arguments I can do _arguments {-h,--help}'[Show help]', but how to specify 'Show help' message in compadd parameters? Cannot find that in documentation
Caren asked 16/3, 2017 at 22:57

28

Solved

What does it mean and how can I fix it? zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? Running the compaudi...
Roborant asked 7/12, 2012 at 11:34

2

Solved

on > zsh mac terminal if i type c and get the autocompletion suggestion as clear To accept that suggestion i need to hit right arrow key and then press enter to run it. I want to change the right ...
Pageantry asked 6/2, 2020 at 3:59

2

Solved

After installing cheat (command cheat sheets from the command line), I tried to enable the autocompletion using the provided zsh script. However, I don't seem to find the correct location for the s...
Embus asked 13/8, 2014 at 15:53

2

I have a problem with the zsh tab completion: After running: autoload -U compinit compinit Git tab completion for files does not work any more. For example if I type git add my_f to complete my_...
Groundhog asked 29/10, 2009 at 10:49

2

Solved

I've updated git to its latest version (2.29.0) and I'm using ZSH 5.8. I used to switch between branches with git checkout remote_br<tab> to quickly switch between branches, even if the branc...
Skill asked 7/9, 2020 at 10:58

1

Solved

I frequently open applications on my Mac by using the command open -a <application-name>. I also have been using tab autocompletion more recently to complete my commands. I tried to do this a...
Mcmillian asked 22/1, 2020 at 17:42

1

I use afuse to automount other hosts to my local file system with sshfs. Like so: afuse -o timeout=30 -o mount_template=sshfs -C %r:/ %m -o unmount_template=fusermount -u -z %m ~/remote/ This wo...
Implicatory asked 31/8, 2012 at 12:23

1

Solved

Having been dragged into the 21st century by macOS Catalina now defaulting to zsh instead of bash for its shell, I'm trying to restore some of the bash's line editing behavior. Specifically, if I a...
Daven asked 17/3, 2020 at 20:15

6

Solved

I'm on OS X Mountain Lion, running the included ZSH shell (4.3.11) with Oh-My-ZSH installed over the top. When using tab completion with commands such as homebrew, when ZSH lists the available com...
Babin asked 11/8, 2012 at 15:50

6

Solved

Git's tab autocompletion is useful for small projects, but I'm currently working on two big projects that use git and for these it's worse than useless. Whenever I type, say, git add forms<tab&g...
Hurdle asked 21/3, 2012 at 18:6

2

I installed ohmyz.sh , on my mac book , i want to install kubectl autocompletion plugin for zsh , but not aware of the steps to install , can any one help on this please ?
Extensible asked 20/2, 2018 at 6:29

1

Solved

I am attempting to write a shell script utility that wraps other shell utilities into a single CLI and am trying to get shell completion to work in zsh and bash. For example, let's say the CLI is ...
Fertilization asked 1/4, 2019 at 1:25

3

How do you set up the Z shell such that typing cd - gives you a list of previously visited paths, and cd -1, -2, -3, etc. will then take you to the directories?
Neolamarckism asked 21/10, 2010 at 11:8

© 2022 - 2024 — McMap. All rights reserved.