Giter Club home page Giter Club logo

dotfiles's Introduction

My Dotfiles

These are my dotfiles. There are many like them, but these ones are mine.

The dotfiles are managed by rcm

Requirements

  • zsh must be installed and in your shell $PATH
  • rcm must be installed and in your shell $PATH

Installing & Updating

# Clone this repo to the dotfiles location on your OS
git clone https://github.com/dnunez24/dotfiles.git ~/.dotfiles

# Install dotfiles for the given tags, e.g. personal or work
cd ~/.dotfiles && ./install.sh [-t TAG]

# Run the setup script to bootstrap the OS
~/.bin/setup

The install.sh is idempotent so it can be run again if you want to change the tags for a given system. The tags get installed into the RCRC config file at ~/.rcrc so that future updates don't require the tags to be passed explicitly.

To update the dotfiles, you can simply run:

rcup -v

Adding a new dotfile

You can use the mkrc command to create a new dotfile as in the example below:

mkrc ~/.my-dotfile

# Add a dotfile and associate with a tag
mkrc -t TAG_NAME ~/.my-dotfile

This will create the file in the dotfiles directory and then symlink it to the user home directory.

Environment Specific Customization

Shell Environment Variables

I use direnv to dynamically load environment variables from .envrc or .env files in the current directory. These files must be explicitly allowed to prevent automatically running a script from an untrusted directory that could do nefarious things to my system. You can run direnv allow [file] to allow a file or add them to the config/direnv/direnv.toml config file in this repo.

Some secrets may need to be stored in environment variables to be loaded by the shell. You can add these to a file in ~/.env which is not included here for reasons which should be obvious.

Application Settings

Visual Studio Code

Settings Sync is enabled via my GitHub profile and will sync across multiple computers. These files are also checked into version control in this repo for backup.

Warp Terminal

Configured through files in the warp directory in this repo.

dotfiles's People

Contributors

dnunez24 avatar

Stargazers

 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.