{"id":15556203,"url":"https://github.com/mstruebing/sourcerer","last_synced_at":"2026-03-05T19:59:57.078Z","repository":{"id":94204882,"uuid":"126602922","full_name":"mstruebing/sourcerer","owner":"mstruebing","description":"Automatically sources files when changing into a directory","archived":false,"fork":false,"pushed_at":"2018-04-27T11:33:24.000Z","size":110,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T19:52:33.920Z","etag":null,"topics":["automation","bash","environment","shell","zsh"],"latest_commit_sha":null,"homepage":null,"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/mstruebing.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-24T13:40:36.000Z","updated_at":"2019-02-19T16:46:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff56e1c1-1dd5-4387-88b8-82f699d70d06","html_url":"https://github.com/mstruebing/sourcerer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mstruebing/sourcerer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstruebing%2Fsourcerer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstruebing%2Fsourcerer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstruebing%2Fsourcerer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstruebing%2Fsourcerer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mstruebing","download_url":"https://codeload.github.com/mstruebing/sourcerer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstruebing%2Fsourcerer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30147951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"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":["automation","bash","environment","shell","zsh"],"created_at":"2024-10-02T15:12:29.669Z","updated_at":"2026-03-05T19:59:57.015Z","avatar_url":"https://github.com/mstruebing.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sourcerer\n\n__DON'T USE THIS - THIS IS DANGEROUS__\n\nA tool to automatically source a `.sourcerer` file in your shell when entering\nthis directory via `cd`.\n\n![example](example.gif \"example\")\n\nThis can be used to define startup processes for projects for example start \ndocker-containers, boot a database, open an ssh-tunnel or anything else you can \ncontrol via your shell. You could define some aliases or functions on a \nper project basis and much more.\n\n## installation\n\n### Automatically\n\n`curl https://raw.githubusercontent.com/mstruebing/sourcerer/master/install.sh | bash`\n\nThis creates a `~/.sourcerer` directory with an `sourcerer` file in there and \nsources this file in your `.profile`, `.bashrc`, `.bash_profile` or `.zshrc`\nto give you the `sourcerer` command.\nIf you are using `zsh` it automatically installs an hook to automatically \nexecutes `sourcerer` on changing the directory. \nIf you are using `bash` it automatically installs a function called `cd`\nwhich uses the built in `cd` command and then calls `sourcerer`.\n\nYou are free to change this if you don't want this behavior.\n\n### Manual\n\nIf you want to install `sourcerer` manually either need to clone this \nrepository and copy or link the `sourcerer` file into your `$PATH`\nor source it via your shell: `source /path/to/sourcerer`.\nIf you want to automatically run `sourcerer` on a directory change read \nthe Automatic sourcing on `cd` section below.\n \n## usage\n\nYou only need to change to a directory with a `.sourcerer` file in it and \nthis file gets automatically sourced.\nIf you want to re-source the file just run `sourcerer`\n\n## Automatic sourcing on `cd`\n\nThis is only needed when you have installed `sourcerer` manually, otherwise \nthis is already set up for you.\n\n### zsh\n\nIf you are using `zsh` you could add this lines to the end of your `.zshrc`:\n\n```\nadd-zsh-hook chpwd sourcerer\nsourcerer\n```\n\nThis will add an change directory hook that executes `sourcerer` on every `cd`\ncommand and executes `sourcerer` when the shell starts.\n\nPlease make sure to add this __after__ the sourcing of \n`sourcerer` (`source /home/\u003cusername\u003e/.sourcerer/sourcerer`)\n\n### bash\n\nIf you are using `bash` you could add a function that first executes `cd`\nand then executes `sourcerer`:\n\n```\nfunction cd() {\n    builtin cd \"$@\" \u0026\u0026 sourcerer\n}\n```\n\nPlease make sure to add this __after__ the sourcing of \n`sourcerer` (`source /home/\u003cusername\u003e/.sourcerer/sourcerer`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstruebing%2Fsourcerer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmstruebing%2Fsourcerer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstruebing%2Fsourcerer/lists"}