GithubHelp home page GithubHelp logo

smorin / fig-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from withfig/config

0.0 1.0 0.0 748 KB

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!

License: MIT License

Shell 100.00%

fig-config's Introduction

This repo is now archived! If you find any bugs, please open an issue in withfig/fig

Config Directory (~/.fig/)

Yes, the name fig comes from configuration

Fig's configuration files are located in the ~/.fig directory.

The config directory is structured like so:

autocomplete/ autocomplete completion specs. See withfig/autocomplete
apps/ installed Fig apps. See withfig/fig-apps
team/ reserved for team apps, runbooks, and completion specs. Not tracked by git
tools/ config scripts e.g. installation, onboarding, uninstallation...
user/ reserved for individual user apps, runbooks, and completion specs. Not tracked by git
fig.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

[ -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.

fig-config's People

Contributors

mschrage avatar sullivan-sean avatar fwesss avatar fig-io avatar brendanfalk avatar nutlope avatar cstrnt avatar heychazza avatar gautamkrishnar avatar mohithg avatar rolandtshen avatar pvcresin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.