{"id":20460979,"url":"https://github.com/mikkoi/plenv-libdirs","last_synced_at":"2026-04-18T11:04:48.773Z","repository":{"id":72897178,"uuid":"339550730","full_name":"mikkoi/plenv-libdirs","owner":"mikkoi","description":"A plenv plugin to add additional include directories to Perl.","archived":false,"fork":false,"pushed_at":"2023-10-29T23:06:02.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T11:33:59.446Z","etag":null,"topics":["bash","hacktoberfest","perl","plenv","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikkoi.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2021-02-16T22:40:42.000Z","updated_at":"2023-10-04T15:20:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"aed746fa-5d13-44d9-ac88-61d62728bc22","html_url":"https://github.com/mikkoi/plenv-libdirs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikkoi/plenv-libdirs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkoi%2Fplenv-libdirs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkoi%2Fplenv-libdirs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkoi%2Fplenv-libdirs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkoi%2Fplenv-libdirs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikkoi","download_url":"https://codeload.github.com/mikkoi/plenv-libdirs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikkoi%2Fplenv-libdirs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","hacktoberfest","perl","plenv","script"],"created_at":"2024-11-15T12:22:42.773Z","updated_at":"2026-04-18T11:04:48.757Z","avatar_url":"https://github.com/mikkoi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plenv-libdirs\n\nA [plenv](https://github.com/tokuhirom/plenv) plugin to add additional include directories to Perl.\n\nThis plugin sets the contents of file `.perl-libdirs`.\nIt hooks into `plenv-exec` command and every time you run `perl`\nor any other command under **plenv**, `plenv-libdirs` uses the\n`.perl-libdirs` files to set the PERL5LIB environment variable.\n\n`plenv-libdirs` makes use of `.perl-libdirs` files\nin the current working directory and every directory\nbetween it and root.\nEnvironment variable PERL5LIB has a list of paths separated (like in PATH)\nby a colon on Unixish platforms and by a semicolon on Windows\n(the proper path separator being given by the command perl -V:path_sep).\nWhen `plenv-libdirs` collects the paths from `.perl-libdirs` files,\nthe order of the paths follows the order of the directories.\nThe longer the path to `.perl-libdirs` file, the higher precedence in PERL5LIB.\n\nLike environment variable PATH, `perl` uses the paths in PERL5LIB\nin the order they appear. Likewise, the search paths in `perl-libdirs` files\nappear in the same order. Example:\nthree projects in dir `root`: *project-a* has a dependency\non *utils* and its test files have a dependency on *testing-utils*.\nTogether, when working directory in `/root/project-a`,\nthese would result in: `PERL5LIB=/root/testing-utils/lib:/root/utils/lib`\n\n```\nroot: projects\n|- .perl-libdirs: **/root/utils/lib**\n|- project-a\n|  |- .perl-libdirs: **/root/testing-utils/lib**\n|  |- lib\n|  |- t\n|\n|- utils\n|  |- lib\n|\n|- testing-utils\n   |- lib\n```\n\n## Installation\n\n```sh\nmkdir -p ${PLENV_ROOT}/plugins\ngit clone https://github.com/mikkoi/plenv-libdirs.git ${PLENV_ROOT}/plugins/plenv-libdirs\nmkdir -p ${PLENV_ROOT}/plenv.d/exec\nln -s ${PLENV_ROOT}/plugins/plenv-libdirs/plenv.d/exec/libdirs.bash ${PLENV_ROOT}/plenv.d/exec/libdirs.bash\n```\n\n## Usage\n\n```\n$ plenv libdirs ../other-project\n$ plenv libdirs\n../other-project/lib\n$ plenv libdirs --add /tmp/second-project\n$ plenv libdirs\n../other-project/lib:/tmp/second-project\n$ plenv libdirs --rm ../other-project\n$ plenv libdirs\n/tmp/second-project\n$ perl -M5.020 -Mstrict -W -e 'say $INC[0];'\n/tmp/second-project\n$ plenv libdirs --unset\n$ plenv libdirs\n```\n\n## AUTHOR\n\nMikko Koivunalho\n\n## LICENSE\n\nSee [the document](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkoi%2Fplenv-libdirs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikkoi%2Fplenv-libdirs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikkoi%2Fplenv-libdirs/lists"}