{"id":24914330,"url":"https://github.com/nicholasbhubbard/mycd","last_synced_at":"2026-05-08T03:47:10.993Z","repository":{"id":49686681,"uuid":"517347462","full_name":"NicholasBHubbard/mycd","owner":"NicholasBHubbard","description":"Directory history for Bash","archived":false,"fork":false,"pushed_at":"2024-01-13T20:52:50.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T02:24:40.095Z","etag":null,"topics":["bash","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NicholasBHubbard.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-24T14:32:52.000Z","updated_at":"2022-09-21T16:49:19.000Z","dependencies_parsed_at":"2025-03-28T05:34:30.291Z","dependency_job_id":null,"html_url":"https://github.com/NicholasBHubbard/mycd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NicholasBHubbard/mycd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicholasBHubbard%2Fmycd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicholasBHubbard%2Fmycd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicholasBHubbard%2Fmycd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicholasBHubbard%2Fmycd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicholasBHubbard","download_url":"https://codeload.github.com/NicholasBHubbard/mycd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicholasBHubbard%2Fmycd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32766122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","shell"],"created_at":"2025-02-02T06:17:27.762Z","updated_at":"2026-05-08T03:47:10.957Z","avatar_url":"https://github.com/NicholasBHubbard.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# -*- mode:org;mode:auto-fill;fill-column:80 -*-\n#+author: Nicholas Hubbard\n\nA bash function that wraps =cd= to log your directory history.\n\n* Why Does This Exist?\n  It is extremely common to need to go back to a directory you've visited\n  recently. =mycd= exists to solve this problem in the simplest way possible by\n  remembering the last 15 (by default) directories you've visited and providing\n  a simple way to list and jump to these directories. The directory history is\n  saved across sessions, and each user gets their own history.\n  \n* Installation\n  #+BEGIN_SRC\n  git clone https://github.com/NicholasBHubbard/mycd\n  cp mycd/mycd.bash /etc/profile.d/\n  #+END_SRC\n\n  You can of course install =mycd.bash= to any directory you wish.\n\n  Next you will need to source =mycd.bash= from your =.bashrc=. It is also\n  recommended that you alias =cd= to =mycd=. Add the following lines to your\n  =.bashrc=.\n  #+BEGIN_SRC \n  if [ -r $DIR/mycd.bash ]; then\n     . $DIR/mycd.bash\n     alias cd=mycd\n  fi\n  #+END_SRC \n  \n* Usage\n  =mycd= works the same way as regular =cd= except it accepts two special\n  arguments.\n\n  The first special argument is =--= which lists your directory history.\n  #+BEGIN_SRC\n  [nick@slacktop ~]$ cd --\n     1\t/home/nick\n     2\t/etc/rc.d\n     3\t/home/nick/Pictures\n     4\t/\n     5\t/etc\n  #+END_SRC\n  The second special argument is =-N= where =N= is one of the numbers listed in\n  the =--= output. This changes your directory to the =N='th directory in your\n  history.\n  #+BEGIN_SRC\n  [nick@slacktop ~]$ cd -3\n  [nick@slacktop Pictures]$ \n  #+END_SRC\n\n* Customization\n  The =MYCD_HIST_LENGTH= variable can be set to control the number of history\n  items that are remembered. This value defaults to 15. \n\n* License\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasbhubbard%2Fmycd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicholasbhubbard%2Fmycd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasbhubbard%2Fmycd/lists"}