iquabius / dotfiles Goto Github PK
View Code? Open in Web Editor NEWMy dotfiles managed by git using a custom `--work-tree`.
My dotfiles managed by git using a custom `--work-tree`.
A new major version has just been released:
https://github.com/RichiH/vcsh/releases/tag/v2.0.0
But using stow #1 instead is an option.
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
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
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:
Instead of GNU stow, I have found that using git bare repositories are simpler to manage. They act as if your home folder was a git repo, but with a hidden folder other than .git to store the data in it. This means that any other git repos under your home folder will not get affected and you will not have to manage submodules, and you also will never have to worry about symlinking.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.