Coder Social home page Coder Social logo

dotfiles's People

Contributors

iquabius avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

dotfiles's Issues

Replace VCSH & Myrepos with bare git

Creating the new repository

A lot of tutorials uses a bare git repository, but that's not strictly necessary.
Check .

The secret sauce is the work tree configuration, not the bare repository. I discovered that using a non-bare repository is functionally identical.

Gabrielle Young on The best way to store your dotfiles: A bare Git repository EXPLAINED. August 3, 2020.

git init $HOME/.dotfiles

Add alias to ~/.config/fish/config.fish:

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/.git/ --work-tree=$HOME'

Refresh current shell:

source ~/.config/fish/config.fish
dotfiles config --local status.showUntrackedFiles no

Setting up on a new system

I tried this in a fresh install of Garuda Sway edition.

sudo pacman -S keepassxc

sudo pacman -S github-cli
gh auth login
gh repo clone iquabius/dotfiles $HOME/.dotfiles
ERROR: No access

# fish shell
eval (ssh-agent -c)
keepassxc

echo ".dotfiles" >> .gitignore

gh repo clone iquabius/dotfiles $HOME/.dotfiles

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

fisher update

Refs

Use "stow" instead of myrepos and vcsh

Stow keeps everything in a directory and symlinks the files. This way we could use Emacs + Magit to manage the repository without hassle

Thanks for introducing this to me:) I switched from a bare git repo to this because it was easier to use with emacs magit/projectile. -- Manage Your Dotfiles With Style! - Wolfgang's Channel on YouTube

System Crafters has 2 videos about Stow:

System Crafters doesn't show how to use Stow, he just mentions it. For now these 2 videos are the only ones in the Managing Your Dotfiles playlist

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.