Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Macos, neovim, zsh, wezterm and other goodies

otahontas/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Personal configuration files, heavily leaning on simple configs for neovim, zsh, wezterm, git.

Setup on new machine

# Clone
git clone --bare [email protected]:otahontas/dotfiles.git $HOME/.dotfiles

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

# Get files
dotfiles checkout

# Hide untracked files
dotfiles config --local status.showUntrackedFiles no

The alias is now permanent (it's in .zshrc).

Daily use (with git aliases! out of the box!)

dotfiles s                # see changes
dotfiles a <file>         # track file
dotfiles cm "msg"         # save changes
dotfiles poh              # upload to origin HEAD (works with branches)

How it works

Uses a bare git repo, so files stay in normal locations and there are no symlinks.

The dotfiles command is an alias that tells git to:

  • Store metadata in ~/.dotfiles/
  • Track files in ~/

About

Macos, neovim, zsh, wezterm and other goodies

Topics

Resources

Stars

Watchers

Forks