GithubHelp home page GithubHelp logo

hzionn / myconfigs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 106 KB

tracking and storing my dotfiles.

Shell 39.65% Lua 60.35%
alacritty cli dotfiles lazyvim nvim terminal tmux fish-shell zshrc key-bindings config

myconfigs's Introduction

my dotfiles

This repo is for tracking and storing my dotfiles across multiple devices.

Contents

.
├── .tmux.conf
├── .zshrc
└── .config/
    ├── alacritty/
    ├── fish/
    ├── helix/
    ├── karabiner/
    └── nvim/

How to

init on primary device

mkdir ~/.dotfiles
git init --bare $HOME/.dotfiles

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no

usage

  • create a github repo for storing dotfiles
git remote add origin <github repo>
git branch -M main
git push -u origin main
  • add and commit files to repo
dotfiles status
dotfiles add .zshrc
dotfiles commit -m "add .zshrc"
dotfiles push
  • Git bare repo is not suppose to store anything, but if there is a need to
# add file or folder to repo
alias dotfilesa='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME add'

# remove file or folder from repo
alias dotfilesr='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME rm -r --cached'
  • clone to secondary device
git clone --bare <github repo> $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles checkout
  • install brew packages to new device
brew install $(brew-packages.txt)
brew install --cask $(brew-cask-packages.txt)

References

myconfigs's People

Contributors

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