Giter Site home page Giter Site logo

dotfiles's Introduction

Dotfiles ๐Ÿ”ฎ

Backup of settings and preferences.

Usage

The management of my dotfiles is partially automated through a custom shell script, dot.sh.

Syncing

  1. Download this script and place it somewhere where it can be easily accessed โ€” I recommend using the home directory or creating an alias.
  2. Adjust the top-level variables, specifically:
    • REPOSITORY โ€” remote git repository address which will be used for syncing;
    • TO_SYNC โ€” an array of file paths (relative to the user's home directory) which you want to upload to the remote.
  3. (optional) Modify the code to add additional syncing logic, e.g. stripping private tokens to prevent them from being released to the internet.
  4. Run ./dot.sh sync:

This will first:

  • clone your repository to $HOME/.dot (this path can be modified) or, if it already exists:
  • fetch any changes from the remote.

It will then execute the syncing logic and put its artifacts (dotfiles) in the aforementioned directory. Finally, everything will be pushed to the remote.

Restoring

WIP

sync

GnuPG

The agent configuration is fine-tuned to support Git commit signing via YubiKey.

SSH

The config is extended to use 1Password's SSH integration.

Visual Studio Code

Note

VS Code remembers these via Settings Sync.

Settings and a list of installed extensions are included.

Neofetch

Only some small visual changes.

Git

Small tweaks, including commit signing.

.hushlogin

See https://kb.iu.edu/d/acdd.

NPM

Configured so that sudo is not required during npm install.

Vim

Although I don't use Vim as my editor of choice, I like to have it configured according to my needs. The config is somewhat inspired by https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim.

Homebrew

Install Homebrew if it doesn't exist. Then, install the dependencies listed in the Brewfile:

if ! command -v brew &> /dev/null
then
  NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

brew bundle

iTerm 2

Many visual and quality-of-life changes. Color theme: https://github.com/sindresorhus/iterm2-snazzy.

License

MIT

dotfiles's People

Contributors

xxczaki avatar

Stargazers

 avatar  avatar  avatar

Watchers

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