{"id":26437514,"url":"https://github.com/justincampbell/use","last_synced_at":"2025-03-18T08:30:03.529Z","repository":{"id":15268026,"uuid":"17997243","full_name":"justincampbell/use","owner":"justincampbell","description":"Manage multiple profile configurations sanely","archived":false,"fork":false,"pushed_at":"2015-03-31T20:11:25.000Z","size":368,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T00:03:46.572Z","etag":null,"topics":["shell"],"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/justincampbell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-21T23:13:04.000Z","updated_at":"2024-04-16T00:03:46.573Z","dependencies_parsed_at":"2022-09-05T14:00:34.051Z","dependency_job_id":null,"html_url":"https://github.com/justincampbell/use","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justincampbell","download_url":"https://codeload.github.com/justincampbell/use/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244183842,"owners_count":20412111,"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":["shell"],"created_at":"2025-03-18T08:29:57.992Z","updated_at":"2025-03-18T08:30:03.523Z","avatar_url":"https://github.com/justincampbell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use [![Build Status](https://travis-ci.org/justincampbell/use.svg?branch=master)](https://travis-ci.org/justincampbell/use)\n\n`use` is a utility for managing project- or client-specific profile configurations. For example, maybe you have some AWS credentials for yourself, and some for work, and maybe some more for that friend you helped with that one startup thing. `use` lets you manage these environment-level credentials and configurations sanely.\n\n# Installation\n\n## [Homebrew](http://brew.sh)\n\n    brew tap justincampbell/formulae\n    brew install use\n\n## Package\n\n    wget -O use-latest.tar.gz https://github.com/justincampbell/use/archive/latest.tar.gz use\n    tar -zxvf use-latest.tar.gz\n    cd use-latest/\n    make install\n\n# Setup\n\nAdd the following to your `~/.profile`:\n\n    source /usr/local/share/use/use.sh\n\nCreate a folder in `~/.use`, and then add folders inside for each client:\n\n    ~\n      .use/\n        me/\n        my_company/\n\nThen in each folder, create a `.profile` file to be sourced when you `use` that profile.\n\n    # ~/.use/me/.profile\n    export FOG_DIRECTORY=myname\n\n# Usage\n\n    use name # name is the directory ~/.use/name\n\nYou can also `use` nothing, which essentially resets your current session:\n\n    use # Same as above, but skip loading a named config.\n\nWhen you `use foo`, the `$USE` environment variable will be exported with \"foo\", so it can be used in a `PS1` or `PROMPT_COMMAND`:\n\n    use_prefix() {\n      if [[ $USE != \"\" ]]; then\n        echo -n \"($USE) \"\n      fi\n    }\n    export PS1='$(use_prefix)\\W$ '\n\n# Examples\n\n## AWS Configuration\n\n```sh\n# ~/.use/my_company/.profile\nexport AWS_ACCESS_KEY_ID=abc123\nexport AWS_SECRET_ACCESS_KEY=abc123\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustincampbell%2Fuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustincampbell%2Fuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustincampbell%2Fuse/lists"}