{"id":18631367,"url":"https://github.com/bahamas10/bash-cdstack","last_synced_at":"2025-05-07T16:53:05.934Z","repository":{"id":10810881,"uuid":"13084993","full_name":"bahamas10/bash-cdstack","owner":"bahamas10","description":"Store the last X directories visited using cd in bash","archived":false,"fork":false,"pushed_at":"2019-11-21T08:24:32.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T12:04:07.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://daveeddy.com/2013/09/14/directory-management-with-cd/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bahamas10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-25T05:30:48.000Z","updated_at":"2025-03-11T19:00:11.000Z","dependencies_parsed_at":"2022-07-21T16:02:24.188Z","dependency_job_id":null,"html_url":"https://github.com/bahamas10/bash-cdstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fbash-cdstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fbash-cdstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fbash-cdstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahamas10%2Fbash-cdstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahamas10","download_url":"https://codeload.github.com/bahamas10/bash-cdstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252921355,"owners_count":21825628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T05:06:48.866Z","updated_at":"2025-05-07T16:53:05.882Z","avatar_url":"https://github.com/bahamas10.png","language":"Shell","readme":"bash-cdstack\n============\n\nStore the last X directories visited using `cd` in bash\n\nSee the blog post here: http://daveeddy.com/2013/09/14/directory-management-with-cd/\n\n![cdstack](http://daveeddy.com/static/media/2013/09/cdstack.png)\n\nInstallation\n------------\n\n### bics\n\nUse [bics](https://github.com/bahamas10/bics) to manage this plugin\n\nAfter installing `bics`, install this plugin by running\n\n    bics install git://github.com/bahamas10/bash-cdstack.git\n\n\n### manually\n\n    git clone git://github.com/bahamas10/bash-cdstack.git\n    cd bash-cdstack\n    cat cdstack.bash \u003e\u003e ~/.bashrc\n    exec bash\n\nUsage\n-----\n\nYou `cd` around like you normally would, and the directories are pushed into a\nstack. Use the function `s` to view the stack of directories, and run `s \"$num\"` to\n`cd` into the directory listed. Use `b` to jump back 1 directory.\n\nExports\n-------\n\n### Global Variables\n\n- `CD_STACK_MAX` - the max number of directory names to store, defaults to 15\n- `CD_STACK_REVERSE` - set this variable to an non-zero length string to reverse the stack when printed with `s`\n- `_CD_STACK` - (private) the stack object itself (an array)\n- `_CD_STACK_PTR` - (private) the current position in the stack\n\n### Environmental Variables\n\nNone\n\n### Functions\n\n- `cd()` - `cd` as you would expect it, but it records directories into the stack\n- `s()` - show the current directory stack, or pass an argument to move into a stacked dir\n- `b()` - jump back 1 directory in the stack\n\n### Aliases\n\nNone\n\nLicense\n-------\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahamas10%2Fbash-cdstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahamas10%2Fbash-cdstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahamas10%2Fbash-cdstack/lists"}