Autocomplete dotfiles without typing the leading dotHow to make bash stop tab autocompleting hidden directoriesTerminal command autocompleteWhy doesn't autocomplete work after typing the “su” command?Terminal autocomplete functionality can only match from the beginning?Autocomplete SSH bash: export: `-a': not a valid identifierterminal autocomplete for ls doesn't go into the directoryAutocomplete of file path does not work after “vim” in terminalAutocomplete options for certain command in ubuntu terminalapt install - can't autocomplete package names (Docker)How does ubuntu terminals autocomplete work?bash filename autocomplete - does it have to use so much screen space?

Improve quality of image bars

Why did Steve Rogers choose this character in Endgame?

Why do so many pure math PhD students drop out or leave academia, compared to applied mathematics PhDs?

Why is Katakana not pronounced Katagana?

How Can I Process Untrusted Data Sources Securely?

What exactly is a Hadouken?

Creating lines connecting each possible pair of points in PostGIS?

Is it ethical for a company to ask its employees to move furniture on a weekend?

Interviewing with an unmentioned 9 months of sick leave taken during a job

Question about exercise 17.22 in TeXbook

Why do candidates not quit if they no longer have a realistic chance to win in the 2020 US presidents election

Is it okay for a chapter's POV to shift as it progresses?

Does the Intel 8085 CPU use real memory addresses?

Getting one over on the boss

Can a Resident Assistant Be Told to Ignore a Lawful Order?

Is this Android phone Android 9.0 or Android 6.0?

Strategy to pay off revolving debt while building reserve savings fund?

How should one refer to knights (& dames) in academic writing?

What impact would a dragon the size of Asia have on the environment?

Is this artwork (used in a video game) real?

Did 007 exist before James Bond?

I want to know the name of this below component

How to make a plagal cadence sound convincing as an ending?

Can a dragon's breath weapon pass through Leomund's Tiny Hut?



Autocomplete dotfiles without typing the leading dot


How to make bash stop tab autocompleting hidden directoriesTerminal command autocompleteWhy doesn't autocomplete work after typing the “su” command?Terminal autocomplete functionality can only match from the beginning?Autocomplete SSH bash: export: `-a': not a valid identifierterminal autocomplete for ls doesn't go into the directoryAutocomplete of file path does not work after “vim” in terminalAutocomplete options for certain command in ubuntu terminalapt install - can't autocomplete package names (Docker)How does ubuntu terminals autocomplete work?bash filename autocomplete - does it have to use so much screen space?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I've been getting close to bash on finding the really nice features of Bash-it.



I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one that matches, as below, using the bash-it autocomplete, and other plugins and aliases.




~ ls Tab ↹
Apps/ Music/
bin/ notes
conky-grapes-master/ Pictures/
cpu_power.sh* Projects/
cpu_temp.sh* Public/
Desktop/ snap/
disk_pct_used.sh* src/
Documents/ Downloads/
vmpk.sh*









share|improve this question
























  • Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

    – Xen2050
    Apr 15 at 5:29

















1















I've been getting close to bash on finding the really nice features of Bash-it.



I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one that matches, as below, using the bash-it autocomplete, and other plugins and aliases.




~ ls Tab ↹
Apps/ Music/
bin/ notes
conky-grapes-master/ Pictures/
cpu_power.sh* Projects/
cpu_temp.sh* Public/
Desktop/ snap/
disk_pct_used.sh* src/
Documents/ Downloads/
vmpk.sh*









share|improve this question
























  • Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

    – Xen2050
    Apr 15 at 5:29













1












1








1








I've been getting close to bash on finding the really nice features of Bash-it.



I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one that matches, as below, using the bash-it autocomplete, and other plugins and aliases.




~ ls Tab ↹
Apps/ Music/
bin/ notes
conky-grapes-master/ Pictures/
cpu_power.sh* Projects/
cpu_temp.sh* Public/
Desktop/ snap/
disk_pct_used.sh* src/
Documents/ Downloads/
vmpk.sh*









share|improve this question
















I've been getting close to bash on finding the really nice features of Bash-it.



I want to be able (or so I think) to key ls file, and on pressing Tab ↹, i get a list of dotfiles, or the single one that matches, as below, using the bash-it autocomplete, and other plugins and aliases.




~ ls Tab ↹
Apps/ Music/
bin/ notes
conky-grapes-master/ Pictures/
cpu_power.sh* Projects/
cpu_temp.sh* Public/
Desktop/ snap/
disk_pct_used.sh* src/
Documents/ Downloads/
vmpk.sh*






command-line bash auto-completion






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 15 at 9:32









dessert

28k6 gold badges83 silver badges115 bronze badges




28k6 gold badges83 silver badges115 bronze badges










asked Apr 15 at 3:45









tidelaketidelake

1507 bronze badges




1507 bronze badges












  • Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

    – Xen2050
    Apr 15 at 5:29

















  • Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

    – Xen2050
    Apr 15 at 5:29
















Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

– Xen2050
Apr 15 at 5:29





Are there any files that begin with a dot in the directory from your example? My bash lists all files if I type ls [tab]. Or do you want to change tab so it only lists "hidden" / dotfiles, then what about regular files?

– Xen2050
Apr 15 at 5:29










1 Answer
1






active

oldest

votes


















2














There’s a Readline variable for that:




match-hidden-files



This variable, when set to ‘on’, causes Readline to
match files whose names begin with a ‘.’ (hidden files) when
performing filename completion. If set to ‘off’, the leading ‘.’ must
be supplied by the user in the filename to be completed. This variable
is ‘on’ by default.




As the variable is set to “on” by default, you should search for the line which sets it off and delete or comment it, e.g. in your ~/.bashrc:



grep match-hidden-files ~/.bashrc


If you can’t find where it’s set or want to set it explicitly, add the following line to $BASH_IT/lib/custom.bash (if you’re using Bash-it1) or ~/.bashrc (if not):



bind 'set match-hidden-files on'


1 Bash-it overwrites the ~/.bashrc when you update it, to keep the configuration you need to set the variable in any of Bash-it’s custom configuration files. Bash-it doesn’t set match-hidden-files off by default.




Here’s the exact opposite question: How to make bash stop tab autocompleting hidden directories






share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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%2faskubuntu.com%2fquestions%2f1133954%2fautocomplete-dotfiles-without-typing-the-leading-dot%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    There’s a Readline variable for that:




    match-hidden-files



    This variable, when set to ‘on’, causes Readline to
    match files whose names begin with a ‘.’ (hidden files) when
    performing filename completion. If set to ‘off’, the leading ‘.’ must
    be supplied by the user in the filename to be completed. This variable
    is ‘on’ by default.




    As the variable is set to “on” by default, you should search for the line which sets it off and delete or comment it, e.g. in your ~/.bashrc:



    grep match-hidden-files ~/.bashrc


    If you can’t find where it’s set or want to set it explicitly, add the following line to $BASH_IT/lib/custom.bash (if you’re using Bash-it1) or ~/.bashrc (if not):



    bind 'set match-hidden-files on'


    1 Bash-it overwrites the ~/.bashrc when you update it, to keep the configuration you need to set the variable in any of Bash-it’s custom configuration files. Bash-it doesn’t set match-hidden-files off by default.




    Here’s the exact opposite question: How to make bash stop tab autocompleting hidden directories






    share|improve this answer





























      2














      There’s a Readline variable for that:




      match-hidden-files



      This variable, when set to ‘on’, causes Readline to
      match files whose names begin with a ‘.’ (hidden files) when
      performing filename completion. If set to ‘off’, the leading ‘.’ must
      be supplied by the user in the filename to be completed. This variable
      is ‘on’ by default.




      As the variable is set to “on” by default, you should search for the line which sets it off and delete or comment it, e.g. in your ~/.bashrc:



      grep match-hidden-files ~/.bashrc


      If you can’t find where it’s set or want to set it explicitly, add the following line to $BASH_IT/lib/custom.bash (if you’re using Bash-it1) or ~/.bashrc (if not):



      bind 'set match-hidden-files on'


      1 Bash-it overwrites the ~/.bashrc when you update it, to keep the configuration you need to set the variable in any of Bash-it’s custom configuration files. Bash-it doesn’t set match-hidden-files off by default.




      Here’s the exact opposite question: How to make bash stop tab autocompleting hidden directories






      share|improve this answer



























        2












        2








        2







        There’s a Readline variable for that:




        match-hidden-files



        This variable, when set to ‘on’, causes Readline to
        match files whose names begin with a ‘.’ (hidden files) when
        performing filename completion. If set to ‘off’, the leading ‘.’ must
        be supplied by the user in the filename to be completed. This variable
        is ‘on’ by default.




        As the variable is set to “on” by default, you should search for the line which sets it off and delete or comment it, e.g. in your ~/.bashrc:



        grep match-hidden-files ~/.bashrc


        If you can’t find where it’s set or want to set it explicitly, add the following line to $BASH_IT/lib/custom.bash (if you’re using Bash-it1) or ~/.bashrc (if not):



        bind 'set match-hidden-files on'


        1 Bash-it overwrites the ~/.bashrc when you update it, to keep the configuration you need to set the variable in any of Bash-it’s custom configuration files. Bash-it doesn’t set match-hidden-files off by default.




        Here’s the exact opposite question: How to make bash stop tab autocompleting hidden directories






        share|improve this answer















        There’s a Readline variable for that:




        match-hidden-files



        This variable, when set to ‘on’, causes Readline to
        match files whose names begin with a ‘.’ (hidden files) when
        performing filename completion. If set to ‘off’, the leading ‘.’ must
        be supplied by the user in the filename to be completed. This variable
        is ‘on’ by default.




        As the variable is set to “on” by default, you should search for the line which sets it off and delete or comment it, e.g. in your ~/.bashrc:



        grep match-hidden-files ~/.bashrc


        If you can’t find where it’s set or want to set it explicitly, add the following line to $BASH_IT/lib/custom.bash (if you’re using Bash-it1) or ~/.bashrc (if not):



        bind 'set match-hidden-files on'


        1 Bash-it overwrites the ~/.bashrc when you update it, to keep the configuration you need to set the variable in any of Bash-it’s custom configuration files. Bash-it doesn’t set match-hidden-files off by default.




        Here’s the exact opposite question: How to make bash stop tab autocompleting hidden directories







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 15 at 11:36

























        answered Apr 15 at 7:23









        dessertdessert

        28k6 gold badges83 silver badges115 bronze badges




        28k6 gold badges83 silver badges115 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1133954%2fautocomplete-dotfiles-without-typing-the-leading-dot%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?