Starting to git me some (version) control of my dotfiles and settings.
# Make symbolic links from files in this repo to home
ln -s ~/proj/dotfiles/.gitconfig ~/.gitconfig
ln -s ~/proj/dotfiles/.gitignore_global ~/.gitignore_global
ln -s ~/proj/dotfiles/.gitmsg ~/.gitmsg
ln -s ~/proj/dotfiles/.npmrc ~/.npmrc
ln -s ~/proj/dotfiles/.tool-versions ~/.tool-versions
ln -s ~/proj/dotfiles/zsh/.zshrc ~/.zshrc
ln -s ~/proj/dotfiles/zsh/.zprofile ~/.zprofile
# Symlink settings for VS Code
ln -s ~/proj/dotfiles/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
While it is possible to sync settings for VS Code with an account, I didn’t want yet another account for that — and went with a manual approach of maintaining a list of potentially interesting extentions in this repo. Using these commands to export and import from one machine to another.
# Create a list of current extensions
code --list-extensions >> vscode/extensions.txt
# Pipe a list into xargs and install those
cat vscode/extensions.txt | xargs -L 1 code --install-extension
- Set up
.zshrc
so user name doesn't need to be hard coded - Figure out how to have secret dotfiles too