Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:29:53+00:00 2026-06-10T20:29:53+00:00

I would like to configure my bash shell to expand partially entered tree structure

  • 0

I would like to configure my bash shell to expand partially entered tree structure like it does emacs “minibuffer-complete” command.

Imagine I have two folders, foo1 and foo2. foo1 contains a subfolder sub1, and foo2 contains subfolder wow. So I have:

foo1/sub1/

foo2/wow/

Now when opening a file in emacs if I type

f/w

and press TAB it will automatically expand it to “foo1/wow/”.

I would like to have a similar functionality in bash. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:29:55+00:00Added an answer on June 10, 2026 at 8:29 pm

    Whilst I don’t know how to do this in bash, or even if it’s possible, I know that if you change your shell to zsh, it can be done.

    It’s not enabled by default, and I’m not sure how to enable it either, but I use the zsh grml config, which enables the kind of expansion you’re talking about.

    Zsh, especially combined with said config, also has many other helpful features.

    If you’re not willing to change shell, then this isn’t a helpful answer I’m afraid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to configure and start tftpd from linux shell. If I call:
I would like to configure JBoss 4.2.x to utilize the JBoss Web Native Connectors
I am using Unity for IOC. I would like to configure the creation of
HttpServletRequest.getRemoteAddr() in Tomcat returns IPv6 formatted IP address, but I would like to configure
I would like to be able to merge two files into one during configure
How can I configure the NppExec plugin for Notepad++? I would like NppExec to
I would like to configure both the Page Tab URL and the Secure Page
I would like to configure an object's properties at runtime either via a properties
I would like to configure apache php5 in a way that .css and .js
I would like to configure a WPF application to function in a similar way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.