KenjiTakahashi / dotfiles

them config files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alias .f='git --git-dir="$HOME/.files/" --work-tree=$HOME'
git clone -b <branch> --bare git@github.com: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

About

them config files


Languages

Language:Python 73.1%Language:Shell 16.1%Language:Lua 10.8%