My quite basic dotfile setup that will hopefully evolve.
I keep my dotfiles under ~projects/
and that is what some of the scripts assume. I will update them later to use variables to make the set up more configurable.
- Adapt for zsh (currently specified for bash)
- In script: Create 'User' file under VS Code directory (if it doesn't exist)
- Transfer AText configuration
- Set up
pyenv
- Show Airdrop status in menu bar
- Modify what is shown in the dock
Note: The bootstrap.exclude.sh script creates symlinks from the dotfiles in this directory to the HOME directory. Make sure that your dotfiles are backed up somewhere safe.
Open a terminal and follow along!
- Clone this repository:
git clone https://github.com/rikkokiri/dotfiles
- CD into the folder:
cd dotfiles
- Execute the bootstrap script:
sh ./bootstrap.exclude.sh
- Restart your terminal or run
source .bash_profile
Inspired by @anhari, I've added a pre-commit hook that saves list of VS Code extensions to vscode/vscode_extensions
. Set the .hooks directory from the repo to serve as git hooks directory by running
git config --local core.hooksPath .githooks/
on your machine ( source ). Or you can copy the hook to hooks directory by running
cp ~/projects/dotfiles/.githooks/pre-commit ~/projects/dotfiles/.git/hooks/pre-commit
Regardless of the method, remember to make it executable by running either
chmod +x ~/projects/dotfiles/.githooks/pre-commit
or
chmod +x ~/projects/dotfiles/.git/hooks/pre-commit
- @ajmalsiddiqui whose articles on dotfiles and dotfile repo served as starting point and inspiration for finally getting my dotfiles repo started
- @mathiasbynens - Dotfiles I can only dream of