Giter Site home page Giter Site logo

.dotfiles's Introduction

dotfiles - getting started

git clone https://github.com/brenodt/dotfiles.git
cd .dotfiles

# To see changes before they're made
stow --simulate .

# To create symlinks on parent directory
stow .

# To delete
stow --delete .

Local ZSH Config

If there's customization you want ZSH to load on startup that is specific to this machine (stuff you don't want to commit into the repo), create ~/.env.sh and put it in there. It will be loaded near the top of .zshrc.

How this works

The configuration files are managed via stow.

The main addition is the system to auto-install dependencies on a fresh system, which uses Ansible.

The structure is:

  • Anything that needs to be ignored from symlinking gets added to the .stow-local-config file (keep in mind the proper rules for it: link)
  • stow symlinks to the target directory (default is the parent) by keeping the same structure found in the root. This means the fs should mimic that of the $HOME

Once configuration is done, just run stow .

How updating the homebrew dependencies works

There is a function called brewrapper in zsh/aliases.zsh which is used as an alias for brew. Whenever you interface with brew - install, remove, update, tap, utap, and so on - you are aliased to this function, that does:

  1. execute your brew command
  2. regenerates the Brewfile (see brew bundle)
  3. uses the Brewfile to set the dependencies for Ansible (via the install/brewdeps script)

This means that maintaining the new dependencies you add/remove from brew is seamless.

Just remember to push the local changes to remote!

.dotfiles's People

Contributors

brenodt avatar

Watchers

 avatar

.dotfiles's Issues

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.