Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/withfig/config
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!
https://github.com/withfig/config
autocomplete bash fig fish ssh tmux zsh
Last synced: about 2 months ago
JSON representation
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!
- Host: GitHub
- URL: https://github.com/withfig/config
- Owner: withfig
- License: mit
- Archived: true
- Created: 2020-12-12T03:22:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T08:54:52.000Z (over 2 years ago)
- Last Synced: 2024-08-01T16:55:48.644Z (5 months ago)
- Topics: autocomplete, bash, fig, fish, ssh, tmux, zsh
- Language: Shell
- Homepage:
- Size: 730 KB
- Stars: 59
- Watchers: 4
- Forks: 13
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
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)
---# Config Directory (~/.fig/)
Yes, the name **fig** comes from con**fig**urationFig's configuration files are located in the `~/.fig` directory.
The config directory is structured like so:
autocomplete/
autocomplete completion specs. See withfig/autocompleteapps/
installed Fig apps. See withfig/fig-appsteam/
reserved for team apps, runbooks, and completion specs. Not tracked by gittools/
config scripts e.g. installation, onboarding, uninstallation...user/
reserved for individual user apps, runbooks, and completion specs. Not tracked by gitfig.sh
establishes Fig's shell and env variables. This file is sourced on every new shell session. See below# The fig.sh script
Fig sources the `fig.sh script` by adding the following line of code to your `.bashrc`, `.zshrc`, `.zprofile`, `.profile`, and `.bash_profile`
```bash
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh
```Why 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.
### fig.sh sourcing time
Sourcing `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.