Skip to content

alessandrocandolini/dotfiles-public

Repository files navigation

dotfiles

Personal dotfiles managed using git and stow.

I use these dotfiles on MACOS, some of them can be used on linux, but not all of them.

See bashrc.md, vimrc.md, and nix.md for more details about those specific dotfiles.

Requirements

  • git
  • close this repo
  • GNU stow

Install stow using nix

nix-shell -p stow

Alternatively, using homebrew

brew install stow

More options here

Run

Once stow and make are available, clone this repo and use the makefile:

make all

Phony targets are provided for each specific config, if you want more granularity:

make bash
make alacritty 
make neovim 

etc.

Alternatively, invoke stow directly

stow --no-folding --verbose --target ~ <name of the folder>

If you want to run it in dry mode, use the --simulate option:

stow --simulate --no-folding --verbose --target ~ <name of the folder>

Notice: for some dotfiles (eg, bash or git) --no-folding can be omitted, because the files are created in the $HOME folder. For other dotfiles created under nested folders (eg, those that will create links under ~/.config/) be sure to always use --no-folding , otherwise stow will create symbolic links to the whole folder (if the folder does not exist) instead of creating the folder first and then generate the symbolic links.

stow-global-ignore

Stow will install symbolic links for every file but those matching the patterns in the $HOME/.stow-global-ignore file. This repo contains also a version of it, and it can be installed through stow itself.

Notice: by default .gitignore is in the list of files that stow will ignore. So, running stow git on this repo will NOT work, unless a custom .stow-global-ignore without gitignore is available (like the one provided by this repo).