Show possible completions in zsh (possible-completions in bash)
Clash Royale CLAN TAG#URR8PPP
I have recently switched to zsh from bash. Deep in my inputrc, I had "e[/": possible-completions
set. This allowed me to see all completions at a given point, without applying them. This was really useful if I had typed ls folder/
and wanted to see what is in the folder. However, I can't seem to find this feature in zsh.
I actually cannot even find any mention of the option in bash on google, either, but it is in the man pages.
Is there any way to use this feature in zsh?
zsh autocomplete
add a comment |
I have recently switched to zsh from bash. Deep in my inputrc, I had "e[/": possible-completions
set. This allowed me to see all completions at a given point, without applying them. This was really useful if I had typed ls folder/
and wanted to see what is in the folder. However, I can't seem to find this feature in zsh.
I actually cannot even find any mention of the option in bash on google, either, but it is in the man pages.
Is there any way to use this feature in zsh?
zsh autocomplete
add a comment |
I have recently switched to zsh from bash. Deep in my inputrc, I had "e[/": possible-completions
set. This allowed me to see all completions at a given point, without applying them. This was really useful if I had typed ls folder/
and wanted to see what is in the folder. However, I can't seem to find this feature in zsh.
I actually cannot even find any mention of the option in bash on google, either, but it is in the man pages.
Is there any way to use this feature in zsh?
zsh autocomplete
I have recently switched to zsh from bash. Deep in my inputrc, I had "e[/": possible-completions
set. This allowed me to see all completions at a given point, without applying them. This was really useful if I had typed ls folder/
and wanted to see what is in the folder. However, I can't seem to find this feature in zsh.
I actually cannot even find any mention of the option in bash on google, either, but it is in the man pages.
Is there any way to use this feature in zsh?
zsh autocomplete
zsh autocomplete
edited Feb 21 at 21:31
Gilles
542k12810991616
542k12810991616
asked Feb 21 at 1:44
John HowardJohn Howard
1113
1113
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
In zsh, a command that you can bind to a key is called a widget. There are several built-in widgets for completion, including list-choices
, which I think is what you're looking for. It's bound to Ctrl+D by default.
But zsh offers a lot more possibilities than bash, so you may want to explore a bit. There are a few basic options related to completion, and then there's a huge completion system that is very powerful, but can be hard to configure from scratch.
add a comment |
This should work with zsh and oh-my-zsh, if I understood it properly. If not, install oh-my-zsh.
zsh-autosuggestions Installation
Manual (Git Clone)
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
Oh My Zsh
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM:-~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
Start a new terminal session.
Source:
GitHub link to package:
https://github.com/zsh-users/zsh-autosuggestions
Link to install info:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501991%2fshow-possible-completions-in-zsh-possible-completions-in-bash%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In zsh, a command that you can bind to a key is called a widget. There are several built-in widgets for completion, including list-choices
, which I think is what you're looking for. It's bound to Ctrl+D by default.
But zsh offers a lot more possibilities than bash, so you may want to explore a bit. There are a few basic options related to completion, and then there's a huge completion system that is very powerful, but can be hard to configure from scratch.
add a comment |
In zsh, a command that you can bind to a key is called a widget. There are several built-in widgets for completion, including list-choices
, which I think is what you're looking for. It's bound to Ctrl+D by default.
But zsh offers a lot more possibilities than bash, so you may want to explore a bit. There are a few basic options related to completion, and then there's a huge completion system that is very powerful, but can be hard to configure from scratch.
add a comment |
In zsh, a command that you can bind to a key is called a widget. There are several built-in widgets for completion, including list-choices
, which I think is what you're looking for. It's bound to Ctrl+D by default.
But zsh offers a lot more possibilities than bash, so you may want to explore a bit. There are a few basic options related to completion, and then there's a huge completion system that is very powerful, but can be hard to configure from scratch.
In zsh, a command that you can bind to a key is called a widget. There are several built-in widgets for completion, including list-choices
, which I think is what you're looking for. It's bound to Ctrl+D by default.
But zsh offers a lot more possibilities than bash, so you may want to explore a bit. There are a few basic options related to completion, and then there's a huge completion system that is very powerful, but can be hard to configure from scratch.
answered Feb 21 at 21:30
GillesGilles
542k12810991616
542k12810991616
add a comment |
add a comment |
This should work with zsh and oh-my-zsh, if I understood it properly. If not, install oh-my-zsh.
zsh-autosuggestions Installation
Manual (Git Clone)
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
Oh My Zsh
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM:-~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
Start a new terminal session.
Source:
GitHub link to package:
https://github.com/zsh-users/zsh-autosuggestions
Link to install info:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
add a comment |
This should work with zsh and oh-my-zsh, if I understood it properly. If not, install oh-my-zsh.
zsh-autosuggestions Installation
Manual (Git Clone)
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
Oh My Zsh
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM:-~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
Start a new terminal session.
Source:
GitHub link to package:
https://github.com/zsh-users/zsh-autosuggestions
Link to install info:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
add a comment |
This should work with zsh and oh-my-zsh, if I understood it properly. If not, install oh-my-zsh.
zsh-autosuggestions Installation
Manual (Git Clone)
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
Oh My Zsh
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM:-~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
Start a new terminal session.
Source:
GitHub link to package:
https://github.com/zsh-users/zsh-autosuggestions
Link to install info:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
This should work with zsh and oh-my-zsh, if I understood it properly. If not, install oh-my-zsh.
zsh-autosuggestions Installation
Manual (Git Clone)
Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.
Oh My Zsh
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM:-~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
Start a new terminal session.
Source:
GitHub link to package:
https://github.com/zsh-users/zsh-autosuggestions
Link to install info:
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
answered Feb 21 at 8:59
pormulsyspormulsys
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501991%2fshow-possible-completions-in-zsh-possible-completions-in-bash%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown