Powershell tab-complete trailing slash












9














In Powershell, when you are typing in a path, using tab-completion, directories don't get a trailing (back)slash, meaning that at each level, I have to type Tab - . Is there any way to make Powershell add the trailing backslash to directories it has autocompleted, like Bash does?










share|improve this question



























    9














    In Powershell, when you are typing in a path, using tab-completion, directories don't get a trailing (back)slash, meaning that at each level, I have to type Tab - . Is there any way to make Powershell add the trailing backslash to directories it has autocompleted, like Bash does?










    share|improve this question

























      9












      9








      9


      3





      In Powershell, when you are typing in a path, using tab-completion, directories don't get a trailing (back)slash, meaning that at each level, I have to type Tab - . Is there any way to make Powershell add the trailing backslash to directories it has autocompleted, like Bash does?










      share|improve this question













      In Powershell, when you are typing in a path, using tab-completion, directories don't get a trailing (back)slash, meaning that at each level, I have to type Tab - . Is there any way to make Powershell add the trailing backslash to directories it has autocompleted, like Bash does?







      powershell






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 24 '10 at 15:14









      tghw

      489816




      489816






















          2 Answers
          2






          active

          oldest

          votes


















          3














          PowerTab is an extension which adds Intellisense-like capabilities to Powershell. You may find that you like the way its pop-up lists and use of backslash and space to select completions works. It doesn't solve the problem of no trailing backslash, but the author says that the issue is with the way Powershell works.



          PowerTab Cheat Sheet






          share|improve this answer





















          • I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
            – tghw
            Sep 25 '10 at 13:19










          • @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
            – Dennis Williamson
            Sep 25 '10 at 15:56






          • 1




            PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
            – JasonMArcher
            Oct 16 '10 at 17:23



















          0














          On the off-chance that someone stumbles over this in 2018:



          PSReadLine is a neat module that does this and much more. Installing it is as simple as running 2 commands (In PS5 - for older versions, check the README):



          Install-Module PSReadLine
          Import-Module PSReadLine


          With a little configuration, PSReadline can do much more advanced things, but Tab-Autocompletion, proper Ctrl-C/Ctrl-V and some other things work out of the box.



          Windows 10 includes PSReadLine by default.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f192362%2fpowershell-tab-complete-trailing-slash%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









            3














            PowerTab is an extension which adds Intellisense-like capabilities to Powershell. You may find that you like the way its pop-up lists and use of backslash and space to select completions works. It doesn't solve the problem of no trailing backslash, but the author says that the issue is with the way Powershell works.



            PowerTab Cheat Sheet






            share|improve this answer





















            • I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
              – tghw
              Sep 25 '10 at 13:19










            • @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
              – Dennis Williamson
              Sep 25 '10 at 15:56






            • 1




              PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
              – JasonMArcher
              Oct 16 '10 at 17:23
















            3














            PowerTab is an extension which adds Intellisense-like capabilities to Powershell. You may find that you like the way its pop-up lists and use of backslash and space to select completions works. It doesn't solve the problem of no trailing backslash, but the author says that the issue is with the way Powershell works.



            PowerTab Cheat Sheet






            share|improve this answer





















            • I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
              – tghw
              Sep 25 '10 at 13:19










            • @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
              – Dennis Williamson
              Sep 25 '10 at 15:56






            • 1




              PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
              – JasonMArcher
              Oct 16 '10 at 17:23














            3












            3








            3






            PowerTab is an extension which adds Intellisense-like capabilities to Powershell. You may find that you like the way its pop-up lists and use of backslash and space to select completions works. It doesn't solve the problem of no trailing backslash, but the author says that the issue is with the way Powershell works.



            PowerTab Cheat Sheet






            share|improve this answer












            PowerTab is an extension which adds Intellisense-like capabilities to Powershell. You may find that you like the way its pop-up lists and use of backslash and space to select completions works. It doesn't solve the problem of no trailing backslash, but the author says that the issue is with the way Powershell works.



            PowerTab Cheat Sheet







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 24 '10 at 18:06









            Dennis Williamson

            76.2k14129167




            76.2k14129167












            • I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
              – tghw
              Sep 25 '10 at 13:19










            • @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
              – Dennis Williamson
              Sep 25 '10 at 15:56






            • 1




              PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
              – JasonMArcher
              Oct 16 '10 at 17:23


















            • I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
              – tghw
              Sep 25 '10 at 13:19










            • @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
              – Dennis Williamson
              Sep 25 '10 at 15:56






            • 1




              PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
              – JasonMArcher
              Oct 16 '10 at 17:23
















            I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
            – tghw
            Sep 25 '10 at 13:19




            I tried using it before asking this question, but I couldn't figure out how to install it, and the docs are completely lacking. Any idea how to do that?
            – tghw
            Sep 25 '10 at 13:19












            @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
            – Dennis Williamson
            Sep 25 '10 at 15:56




            @tghw: Yeah, the docs are pretty bad. Unzip the file into DocumentsWindowsPowerShellModules so you have a new directory under that called PowerTab. Then in PS do Import-Module powertab. See this for further instructions. You will get error messages (and will need to/unless you) manually create a directory and some files.
            – Dennis Williamson
            Sep 25 '10 at 15:56




            1




            1




            PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
            – JasonMArcher
            Oct 16 '10 at 17:23




            PowerTab will not add trailing backslashes to a directory, but it does support recursive tab expansion based on typing a backslash. The reason for this is that it would break chaining of tab expansion. PowerShell will only call a new TabExpansion() if the command line has changed since the last TabExpansion(). So adding a backslash to the result would mean that you could not press <TAB> again.
            – JasonMArcher
            Oct 16 '10 at 17:23













            0














            On the off-chance that someone stumbles over this in 2018:



            PSReadLine is a neat module that does this and much more. Installing it is as simple as running 2 commands (In PS5 - for older versions, check the README):



            Install-Module PSReadLine
            Import-Module PSReadLine


            With a little configuration, PSReadline can do much more advanced things, but Tab-Autocompletion, proper Ctrl-C/Ctrl-V and some other things work out of the box.



            Windows 10 includes PSReadLine by default.






            share|improve this answer


























              0














              On the off-chance that someone stumbles over this in 2018:



              PSReadLine is a neat module that does this and much more. Installing it is as simple as running 2 commands (In PS5 - for older versions, check the README):



              Install-Module PSReadLine
              Import-Module PSReadLine


              With a little configuration, PSReadline can do much more advanced things, but Tab-Autocompletion, proper Ctrl-C/Ctrl-V and some other things work out of the box.



              Windows 10 includes PSReadLine by default.






              share|improve this answer
























                0












                0








                0






                On the off-chance that someone stumbles over this in 2018:



                PSReadLine is a neat module that does this and much more. Installing it is as simple as running 2 commands (In PS5 - for older versions, check the README):



                Install-Module PSReadLine
                Import-Module PSReadLine


                With a little configuration, PSReadline can do much more advanced things, but Tab-Autocompletion, proper Ctrl-C/Ctrl-V and some other things work out of the box.



                Windows 10 includes PSReadLine by default.






                share|improve this answer












                On the off-chance that someone stumbles over this in 2018:



                PSReadLine is a neat module that does this and much more. Installing it is as simple as running 2 commands (In PS5 - for older versions, check the README):



                Install-Module PSReadLine
                Import-Module PSReadLine


                With a little configuration, PSReadline can do much more advanced things, but Tab-Autocompletion, proper Ctrl-C/Ctrl-V and some other things work out of the box.



                Windows 10 includes PSReadLine by default.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 22 '18 at 14:29









                MCO

                1011




                1011






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2fsuperuser.com%2fquestions%2f192362%2fpowershell-tab-complete-trailing-slash%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

                    Aardman Animations

                    Are they similar matrix

                    “minimization” problem in Euclidean space related to orthonormal basis