Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.17 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.17 KB
alias .f='git --git-dir="$HOME/.files/" --work-tree=$HOME'
git clone -b <branch> --bare [email protected]:KenjiTakahashi/dotfiles.git '.files'
.f checkout --recurse-submodules
.f config --local status.showUntrackedFiles no

where <branch> is one of:

  • core - common base for all machines, use for defining new configs
  • zion
  • apfel1

Other Commands

go install golang.org/x/tools/gopls@latest
go install github.com/rinchsan/gosimports/cmd/gosimports@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/nametake/golangci-lint-langserver@latest
npm i -g typescript typescript-language-server vscode-langservers-extracted

Why not clone --separate-git-dir?

Because most probably the $HOME directory is already not empty. So cloning into it will fail. And cloning into temporary directory then rsyncing into $HOME will leave submodules with incorrect worktrees.

It can be made to work, but is actually more involved than the method above.

Inspirations