Emacs Org-mode's org-babel functionality. I have a few org-mode files storing all the dotfiles, put under version control. I can update and deploy them from within Emacs.
Ask HN: What do you use to manage dotfiles?
51–60 of 97 posts
Re: Ask HN: What do you use to manage dotfiles?
#52 cd ~
git init
git remote add origin https://sgtpep@github.com/sgtpep/dotfiles.git
git fetch
git checkout -ft origin/master
git config status.showUntrackedFiles noRe: Ask HN: What do you use to manage dotfiles?
#53I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…
Can you write a blog post on your workflow? I would love to learn more on how you to use it :P
Re: Ask HN: What do you use to manage dotfiles?
#54I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…
"branches for different computers" sounds tedious if most changes are for every computer.
Re: Ask HN: What do you use to manage dotfiles?
#55I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…
Why is this a bare repo as opposed to a normal one?
Re: Ask HN: What do you use to manage dotfiles?
#56I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…
I'm confused - you can add files that are in a parent directory?
Re: Ask HN: What do you use to manage dotfiles?
#57I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…
Can you write a blog post on your workflow? I would love to learn more on how you to use it :P
Re: Ask HN: What do you use to manage dotfiles?
#58Earlier quoted context omitted.
Can you write a blog post on your workflow? I would love to learn more on how you to use it :P
I'm trying to reproduce it and documenting it as I go... ok I got it working now and I have notes. Stay tuned.
Re: Ask HN: What do you use to manage dotfiles?
#59Earlier quoted context omitted.
I'm trying to reproduce it and documenting it as I go... ok I got it working now and I have notes. Stay tuned.
It's probably better if you do it then :-) I would probably skip some important parts trying to explain because I'm too much used to it already.
Re: Ask HN: What do you use to manage dotfiles?
#60I use: git init --bare $HOME/.myconf alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' config config status.showUntrackedFiles no where my ~/.myconf directory is a git bare repository. Then any file within the home folder can be versioned with normal commands like: config status config add .vimrc config commit -m "Add vimrc" config add .config/redshift.conf config commit -m "Add redshift config"…