This repository hosts my personal dotfiles and tools to bootstrap a new minimal operational environment.
This repository is meant for my personal usage, it includes my personal settings for my work environment on Mac OS X.
Don’t blindly use this unless you know what you do. Use at your own risk 😊!
The bootstrap.sh
script installs all necessary programs and command line utilities, then it creates symlinks
between the dotfiles
stored in this repository and your $HOME
directory.
Installed tools and scripts:
- Homebrew
- mas - Mac App Store command line utility
- xcode
- nerd-fonts
- all applications in
mas.txt
- all applications in
brew.txt
- all applications in
cask.txt
A Mac OS X environment with ARM chip with Catalina or higher. (in 2019 Mac OSX default to zsh
).
To bootstrap a new environment follow these steps:
- Sign to Mac App Store (necessary to install xcode and all applications in
mas.txt
) - Open a Terminal
- Clone this repository:
$> git clone https://github.com/hervenivon/dotfiles
$> cd dotfiles
- Execute the bootstraping script:
$> sh ./bootstrap.sh
- Open
iTerm2
and follow the bellow instructions to finish the setup (color theme and fonts)
You'll have to accept the license agreement after the Xcode installation. It will be triggered after the first git pull
.
Apple security prevents certain applications to be opened after an installation from brew
or Internet.
You will see the following
Just click "Open".
- Open iTerm2
- Go to iTerm2 > Preferences > Profiles > Colors Tab
- Click Color Presets… at the bottom right
- Click Import…
- Select the material-design-colors.itermcolors file
- Click Color Presets… again
- Select the material-design-colors
- Open iTerm2
- Go to iTerm2 > Settings > Profiles > Text > Font
- Change Font
- Select "Hack Regular Nerd Font Complete"
With iTerm2 comes shell-integration which enable further features in iTerm2:
- Command status
- Download and upload with scp
- Command history
- Toolbelt enhancement
- Recent Directories
- Generate a new ssh key with a passphrase:
ssh-keygen -t ed25519 -C "[email protected]"
- file name:
~/.ssh/gitservices
- passphrase:
<you choose>
- Update github ssh key with the public key
cat ~/.ssh/gitservices.pub
- copy the result to your clipboard
- go to github.com (create a new ssh key)
gh-ssh-add
(an alias tossh-add ~/.ssh/gitservices
added by the bootstrap script)
- Open the
Visual Studio Code
application (code .
initerm2
for example) - Open the Account menu in the lower left corner and click "Sign In"
- Activate Settings Sync
- You are all set
Some tools require further configuration, like Clean My Mac X - which requires a license.
Updating submodules: git submodule update --recursive --remote
Thank you to the following people and their dotfiles. It inspired mine in many ways.
- @ajmalsiddiqui - For the initial inspiration
- @mathiasbynens - The go-to place for dotfiles references
- strap - For the reference strap application on Mac OS
And if it is not enough go here!