Problem: to have a tab completion which takes two words and calculates the best match from them for Man, and then returns the best matches
Example: The following pseudo-code should give me at least Zsh's reverse-menu-complete -command. Right now, I…
Consider an environment variable that can take a list of arbitrary possible meaningful values. For an example of such an environment variable consider AWS_PROFILE. The list of possible values can be easily computed by some command, e. g. aws…
TLDR
How can I configure zsh-autocomplete to insert up to the longest common prefix, excluding their common suffixes?
I have not seen this asked before on StackOverflow. Here is a GitHub issue which is related but not the same.
Setting up the…
I can across the following zstyle setting in a popular shared zsh configuration:
# Environment Variables
zstyle ':completion::*:(-command-|export):*' fake-parameters ${${${_comps[(I)-value-*]#*,}%%,*}:#-*-}
Source: sorin-ionescu/prezto…
my terminal picture
In that case,I want add 1.txt ,I must type ga tmp/caches/1.txt, how can i just type ga 1.txt and help me auto complete full file path.
I've installed zsh-autosuggestions zsh-completions, but they were helpless.
I want some plugin…
I'd like to write completion for a program taking --dsn= option where database specification is of the form backend://something-else and where "backend" can take one of several predefined values, such as postgresql, odbc or…
Is there some simple way to configure zsh to use the same completer for foo.exe as for foo itself for any foo? By default this doesn't seem to happen, and so pressing TAB after git.exe uses the default file completion instead of Git-specific command…
I am trying to capture a string in mac terminal zsh
when i try
echo "abc1234!"
It would prompt for dquote>
I have tried adding a additional quote like this
echo "abc1234!""
Output
abc1234
how do i capture ! character in the string ??
If I type this inside a regular interactive zsh shell that I have prepared with autoload -U compinit && compinit:
$ cat --
and then press the Tab key on my keyboard, I get this zsh completion output:
$ cat --
--help -- display help and…
Issue
I am using ohmyzsh with no changes. Here is my .zshrc file (comments removed for brevity):
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
When I use the UP arrow key with a blank terminal…
I use the following zstyle commands to group completion items by their description:
zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f'
zstyle ':completion:*' group-name ''
zstyle ':completion:*:ssh:*:users' users alice bob…
Given an example wrapper shell function:
app() {
setsid "$@"
}
In Bash, you can do complete -F _command app to automatically give app completions for all commands (not just binaries on the path but also the arguments afterwards).
How can you do…
I'm trying to make a simple zsh widget that asks user for a string and sets it as the current command prompt afterwards
zle -N replace-command-buffer
bindkey '\eg' replace-command-buffer
replace-command-buffer() {
local input
echo "Enter a…
I'm writing a zsh completion for some program, and parts of it involves completing resource routes (/they/look/like/this).
I have a command mycmd that I can use to generate some completion candidates of resource routes, and provide completions for…