{"id":26160003,"url":"https://github.com/acupofair/directory-stack","last_synced_at":"2026-04-29T21:34:52.888Z","repository":{"id":106716137,"uuid":"601691548","full_name":"ACupofAir/Directory-Stack","owner":"ACupofAir","description":"A simple script to switch directory quickly for powershell, bash and zsh","archived":false,"fork":false,"pushed_at":"2023-10-19T02:05:49.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T11:57:02.647Z","etag":null,"topics":["bash","powershell","zsh"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ACupofAir.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2023-02-14T16:01:18.000Z","updated_at":"2023-04-21T16:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e338e4db-30e3-4925-9b81-927193f96f87","html_url":"https://github.com/ACupofAir/Directory-Stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ACupofAir/Directory-Stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ACupofAir%2FDirectory-Stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ACupofAir%2FDirectory-Stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ACupofAir%2FDirectory-Stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ACupofAir%2FDirectory-Stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ACupofAir","download_url":"https://codeload.github.com/ACupofAir/Directory-Stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ACupofAir%2FDirectory-Stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","powershell","zsh"],"created_at":"2025-03-11T11:56:32.626Z","updated_at":"2026-04-29T21:34:52.858Z","avatar_url":"https://github.com/ACupofAir.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Directory-Stack\n\nA powershell module to switch directory quickly\n\n## :gear: Install\n\n### powershell user\n- Install from PowerShell Gallery(Suggestion)\n  - `Install-Module -Name directory-stack`\n- Update from PowerShell Gallery(Suggestion)\n  - `Update-Module -Name directory-stack`\n  - [TODO] It seems that you need to manually go to the directory and remove the old version files for the updated module to take effect.\n- Install mannual\n  - download this repository: `git clone git@github.com:ACupofAir/Directory-Stack.git` and rename it to `directory-stack`\n  - reference the folder in you powershell profile(`$PROFILE` is the default powershell config filek) , add this line to the profile\n    `Import-Module -Name $repository_path -DisableNameChecking`\n- Optional Config: set alias of the function names in your `$PROFILE` to use them easily\n\n  ```powershell\n  # in $PROFILE(usually is \"~\\Documents\\PowerShell\\Microsoft.PowerShell_profile.ps1\")\n  Set-Alias -Name dv Get-Dir-Stack\n  Set-Alias -Name pd Add-Dir-Item\n  Set-Alias -Name pp Remove-Dir-Stack-Item\n  Set-Alias -Name jp Set-Stacked-Dir\n  ```\n\n### bash or zsh user\n```bash\ncurl -sSL https://raw.githubusercontent.com/ACupofAir/Directory-Stack/main/bash/install.sh | bash\n```\n## :toolbox: Usage\n\n### powershell user\n\u003e **Following usage will run rightly after config alias in $PROFILE**\n\n* [TODO] show be update.\n![demo](https://github.com/ACupofAir/dotfiles/blob/main/res/dir_stack_demo.gif?raw=true)\n\n|       cmd       | info                                                                                                                           |\n| :-------------: | :----------------------------------------------------------------------------------------------------------------------------- |\n|      `pd`       | pushd current directory in the stack                                                                                           |\n| `pd $DIR_NAME`  | pushd `$DIR_NAME` in the stack                                                                                                 |\n| `pp $DIR_INDEX` | popd directory index `$DIR_INDEX` in stack out                                                                                 |\n|      `dv`       | show the table of stack(named from the linux command dirs -v), and waiting for user to input the index of directory want to go |\n| `jp $DIR_INDEX` | jump to the directory whose index is `$DIR_INDEX` in the stack                                                                 |\n\n### bash or zsh user\n|       cmd        | info                                                                                      |\n| :--------------: | :---------------------------------------------------------------------------------------- |\n|       `pd`       | pushd current directory in the stack                                                      |\n|  `pd $DIR_NAME`  | pushd `$DIR_NAME` in the stack                                                            |\n| `pp $DIR_INDEX`  | popd directory index `$DIR_INDEX` in stack out and jump to the directory                  |\n| `rmd $DIR_INDEX` | remove directory index `$DIR_INDEX` in stack                                              |\n|       `dv`       | show the table of stack(named from the linux command dirs -v)                             |\n| `jp $DIR_INDEX`  | jump to the directory whose index is `$DIR_INDEX` in the stack                            |\n|     `cldirs`     | temporarily clear stack, when you start a new stack, the directory stack will be restored |\n\n## :date: Release Log\n\n| version | release date | description                      |\n| ------- | ------------ | -------------------------------- |\n| v1.1.0  | 02/03/2023   | add autoload directory support   |\n| v1.2.2  | 06/27/2023   | make all directory store in file |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facupofair%2Fdirectory-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facupofair%2Fdirectory-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facupofair%2Fdirectory-stack/lists"}