Show possible completions in zsh (possible-completions in bash)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















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?










share|improve this question




























    1















    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?










    share|improve this question


























      1












      1








      1








      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?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 21 at 21:31









      Gilles

      542k12810991616




      542k12810991616










      asked Feb 21 at 1:44









      John HowardJohn Howard

      1113




      1113




















          2 Answers
          2






          active

          oldest

          votes


















          1














          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.






          share|improve this answer






























            0














            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






            share|improve this answer






















              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
              );



              );













              draft saved

              draft discarded


















              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









              1














              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.






              share|improve this answer



























                1














                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.






                share|improve this answer

























                  1












                  1








                  1







                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 21 at 21:30









                  GillesGilles

                  542k12810991616




                  542k12810991616























                      0














                      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






                      share|improve this answer



























                        0














                        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






                        share|improve this answer

























                          0












                          0








                          0







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 21 at 8:59









                          pormulsyspormulsys

                          111




                          111



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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






                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay