https://github.com/mo42/dotfiles
My NeoVim, NeoMutt, Zsh, Sway, and other configuration files
https://github.com/mo42/dotfiles
Last synced: over 1 year ago
JSON representation
My NeoVim, NeoMutt, Zsh, Sway, and other configuration files
- Host: GitHub
- URL: https://github.com/mo42/dotfiles
- Owner: mo42
- License: mit
- Created: 2024-12-23T17:31:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T19:30:23.000Z (over 1 year ago)
- Last Synced: 2025-03-11T20:30:58.320Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 281 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles

I manage my dotfiles directly with `git`
([based on this HN post](https://news.ycombinator.com/item?id=11071754)).
## Replicate on new Machine
```sh
git clone --separate-git-dir=$HOME/.dotfiles https://github.com/mo42/dotfiles.git dotfiles-tmp
cp -r dotfiles-tmp/.* ~
rm -r ~/dotfiles-tmp
```
## Example: Add Vim Configuration
```sh
dotgit status
dotgit add .vimrc
dotgit commit -m "Every good setup needs a vimrc"
```
## Initial Setup
```sh
git init --bare $HOME/.dotfiles
alias dotgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Don't show untracked files
dotgit config status.showUntrackedFiles no
```
## Setup NeoVim
```sh
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
```