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 6975935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:25:57+00:00 2026-05-27T17:25:57+00:00

I have my projects in a ~/Documents/EP_example_project naming scheme. They all live under ~/Documents

  • 0

I have my projects in a ~/Documents/EP_example_project naming scheme. They all live under ~/Documents.

I would like to create a bash-function that allows me to cd into a project-directory from whereever I am on the system; with autocomplete. Like so:

cdp E<tab>
# ... EAP_example_additional_project EP_example_project
P<tab>
# prompt now says:
cdp EP_example_project<enter>
# ... And I am in the project-directory.

That would be a bit easier then typing cd ~/Do<tab>EP<tab> everytime.

I do know the basics about creating a simple function, but cannot find how to add tab-autocompletion to that.

NOTE: while above reasoning makes little sense: the additional ~/Do is not that much overhead, it is the additional things I can do in such a function, like print the contents of a certain file if found (.birdseye), list the projects contents, last accessed dates and so on, that make this more interesting in future.

  • 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-05-27T17:25:57+00:00Added an answer on May 27, 2026 at 5:25 pm

    You could consider CDPATH. You can export CDPATH=~/Documents to have all the directories under ~/Documents added for autocompletion. You can have a function or alias for this export command and set & unset CDPATH as and when you need.
    Hope this helps!

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

Sidebar

Related Questions

I have a few .Net projects that would benefit from using a document/object database
I must be missing something, i have VS2010 Premium. Under Templates, Test Projects ->
Let's say I have two types of MongoDB documents: 'Projects' and 'Tasks'. A Project
Suppose i have the following tables : projects( project_id , project_name ) documents( document_id,document_name
I have two tables: one called Projects, and another called Documents (projects has many
I have a table for Projects, a table for Documents (with a FK to
I have the following file: C:\Users\Jan\Documents\Visual Studio 2010\Projects\AzureTests\Build\82df3c44-0482-47a7-a5d8-9b39a79cf359.cskpg\WebRole1_778722b2-eb95-476d-af6a-917f269a0814.cssx\39e5cb39-cd18-4e1a-9c25-72bd1ad41b49.csman I can open this file fine
I have a project where I need to compare multi-chapter documents to a second
I have created (generated) a MDI project with tabbed documents with VS2008 Pro. Visual
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008

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.