{"id":13479275,"url":"https://github.com/withfig/config","last_synced_at":"2025-03-27T09:31:05.966Z","repository":{"id":43596870,"uuid":"320738476","full_name":"withfig/config","owner":"withfig","description":"Fig's integrations with bash, zsh, fish, ssh, and tmux. Also contains Fig's installation and update scripts. Finally, this repo is the root of the .fig folder that is installed on your computer when you download Fig!","archived":true,"fork":false,"pushed_at":"2022-07-07T08:54:52.000Z","size":748,"stargazers_count":60,"open_issues_count":11,"forks_count":14,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-30T12:48:42.529Z","etag":null,"topics":["autocomplete","bash","fig","fish","ssh","tmux","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/withfig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-12T03:22:00.000Z","updated_at":"2024-08-24T23:36:09.000Z","dependencies_parsed_at":"2022-08-26T05:41:25.222Z","dependency_job_id":null,"html_url":"https://github.com/withfig/config","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withfig","download_url":"https://codeload.github.com/withfig/config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245817391,"owners_count":20677282,"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":["autocomplete","bash","fig","fish","ssh","tmux","zsh"],"created_at":"2024-07-31T16:02:12.632Z","updated_at":"2025-03-27T09:31:05.650Z","avatar_url":"https://github.com/withfig.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"This repo is now archived! If you find any bugs, please open an issue in [withfig/fig](https://github.com/withfig/fig/issue/new)\n---\n\n# Config Directory (~/.fig/)\nYes, the name **fig** comes from con**fig**uration\n\n\n\nFig's configuration files are located in the  `~/.fig` directory.\n\n\n\nThe config directory is structured like so:\n\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd\u003eautocomplete/\u003c/td\u003e\n    \u003ctd\u003eautocomplete completion specs. See \u003ca href=\"https://github.com/withfig/autocomplete\"\u003e withfig/autocomplete\u003c/a\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eapps/\u003c/td\u003e\n    \u003ctd\u003einstalled Fig apps. See \u003ca href=\"https://github.com/withfig/fig-apps\"\u003e withfig/fig-apps\u003c/a\u003e \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003eteam/\u003c/td\u003e\n    \u003ctd\u003ereserved for team apps, runbooks, and completion specs. Not tracked by git\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003etools/\u003c/td\u003e\n    \u003ctd\u003econfig scripts e.g. installation, onboarding, uninstallation...\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003euser/\u003c/td\u003e\n    \u003ctd\u003ereserved for individual user apps, runbooks, and completion specs. Not tracked by git\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n    \u003ctd\u003efig.sh\u003c/td\u003e\n    \u003ctd\u003eestablishes Fig's shell and env variables. This file is sourced on every new shell session. See below\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n\n# The fig.sh script\n\nFig sources the `fig.sh script` by adding the following line of code to your `.bashrc`, `.zshrc`, `.zprofile`, `.profile`, and `.bash_profile`\n\n```bash\n[ -s ~/.fig/fig.sh ] \u0026\u0026 source ~/.fig/fig.sh\n```\n\n\n\nWhy do we source `fig.sh` in so many dotfiles? In order to get context on your Terminal (e.g. current working directory), we need to source Fig for each new *shell* session, not just *Terminal* session. e.g. if you open a new terminal, and switch between bash and zsh shells.\n\n\n### fig.sh sourcing time\n\nSourcing `fig.sh`  takes around **9ms**. We use conditionals to make sure the script is only run once . If you haven't started a new shell session in a while, it could take up to 200ms. But afterwards will go back to 9ms.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithfig%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Fconfig/lists"}