{"id":15475897,"url":"https://github.com/caijinglong/find_env_shell","last_synced_at":"2025-10-19T05:20:46.175Z","repository":{"id":44431536,"uuid":"256662625","full_name":"CaiJingLong/find_env_shell","owner":"CaiJingLong","description":"Configure different environment for each project.","archived":false,"fork":false,"pushed_at":"2025-01-20T05:58:19.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T14:11:38.905Z","etag":null,"topics":["bash","environment","zsh"],"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/CaiJingLong.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"caijinglong","custom":"https://cdn.jsdelivr.net/gh/kikt-blog/blog-2@pay/pay.jpg"}},"created_at":"2020-04-18T03:38:10.000Z","updated_at":"2025-01-20T05:58:20.000Z","dependencies_parsed_at":"2025-01-08T23:46:08.456Z","dependency_job_id":null,"html_url":"https://github.com/CaiJingLong/find_env_shell","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"252592d563ba283d1ddbcedc165b801bc35274b7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CaiJingLong/find_env_shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiJingLong%2Ffind_env_shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiJingLong%2Ffind_env_shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiJingLong%2Ffind_env_shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiJingLong%2Ffind_env_shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaiJingLong","download_url":"https://codeload.github.com/CaiJingLong/find_env_shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaiJingLong%2Ffind_env_shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279706642,"owners_count":26213846,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"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","environment","zsh"],"created_at":"2024-10-02T03:21:04.123Z","updated_at":"2025-10-19T05:20:46.112Z","avatar_url":"https://github.com/CaiJingLong.png","language":"Shell","funding_links":["https://liberapay.com/caijinglong","https://cdn.jsdelivr.net/gh/kikt-blog/blog-2@pay/pay.jpg"],"categories":[],"sub_categories":[],"readme":"# find_env_shell\n\nQuickly insert some environment variables in the command line by .env file.\n\nSupport macOS.\n\nLinux should also support.\n\n[中文文档](./README_CN.md)\n\n## Usage\n\n### Bash\n\ndownload `find_env.sh`, and insert next code to your `~/.bash_profile`\n\n```bash\nsource ~/Downloads/find_env.sh # your file path\n```\n\nIt is best to stay on the last line.\n\n### Zsh\n\ndownload `find_env.zsh`, and insert next code to your `~/.zshrc`\n\n```bash\nsource ~/Downloads/find_env.zsh # your file path\n```\n\nIt is best to stay on the last line.\n\n## Zsh Example\n\n```zsh\ncd /tmp\ngit clone https://github.com/caijinglong/find_env_shell.git\ncd find_env_shell\n\ncat 'source /tmp/find_env_shell/find_env.zsh' \u003e\u003e ~/.zshrc\n\ncd sub1\nsource ~/.zshrc\n```\n\nthen, The zsh will output next:\n\n```zsh\nfind .env file in /tmp/find_env_shell/sub1\nfind .env file in /tmp/find_env_shell\nsource /tmp/find_env_shell/.env\nshell.env # the log come from .env of project root path.\nsource /tmp/find_env_shell/sub1/.env\nsub1 # the log come from sub1/.env\n```\n\n## Add file to config file\n\nDownload `find_env.zsh` or `find_env.sh`\n\nzsh:\n\n```shell\nmkdir ~/shells\ncurl https://raw.githubusercontent.com/CaiJingLong/find_env_shell/master/find_env.zsh \u003e ~/shells/find_env.zsh\necho \"source ~/shells/find_env.zsh\" \u003e\u003e ~/.zshrc\n\nsource ~/.zshrc\n```\n\nsh or bash\n\n```shell\nmkdir ~/shells\ncurl https://raw.githubusercontent.com/CaiJingLong/find_env_shell/master/find_env.sh \u003e ~/shells/find_env.sh\necho \"source ~/shells/find_env.sh\" \u003e\u003e ~/.bash_profile\n\nsource ~/.bash_profile\n```\n\nIf you use the method to add env to your shell, when you change your `.env` file, you just run `find_env` in your shell to refresh environment.\n\n## License\n\nMIT Style\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaijinglong%2Ffind_env_shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaijinglong%2Ffind_env_shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaijinglong%2Ffind_env_shell/lists"}