The dotfiles
Developer's quick starter for your NEW MacBook. You can set up your MacBook quickly and easily after you bought it.
Prerequisite
- OS: macOS Catalina over 10.15
- Git installed
- Not only
bash
but alsozsh
works
How to install only dotfiles
Type the following command on your terminal then close the terminal.
curl -fsSL https://raw.githubusercontent.com/keidrun/dotfiles/master/install.sh | bash
After that, you need install Homebrew, peco, z, ccat and trash by yourselef.
How to install all application as same as my cool MacBook Pro
Step1. Install dotfiles. After installing, close the terminal
curl -fsSL https://raw.githubusercontent.com/keidrun/dotfiles/master/install.sh | bash
relogin
Brewfile
Step2. Installcd dotfiles/
sudo bash ./bin/brew-install.sh && bash ./bin/brew-install-bundle.sh
relogin
sudo xcodebuild -license accept
NOTE: If you are a Japanese speaker and use a US keyboard, I recommend ei-kana instead of karabiner.
sdkman
Step3. Installsudo bash ./bin/sdk-install.sh
anyenv
Step4. Installbash ./bin/anyenv-install.sh
relogin
bash ./bin/anyenv-install-*env.sh
relogin
bash ./bin/anyenv-install-ruby.sh && bash ./bin/anyenv-install-python.sh && bash ./bin/anyenv-install-node.sh && bash ./bin/anyenv-install-go.sh
Step5. Install some CLI tools
bash ./bin/cli-tools-install.sh
Step6. Set up Git and GitHub manually
- Set your name and your email to
user.name
anduser.email
in.gitconfig
. - Set your GitHub's token to
HOMEBREW_GITHUB_API_TOKEN
in.zshrc
.
Step7. Set up Visual Studio Code
bash ./bin/code-setup.sh && bash ./bin/code-install-extensions.sh
After that, you just enjoy to develop.
Reset dotfiles
You can reset dotfiles and vim settings as default.
bash ./bin/reset-dotfiles.sh && bash ./bin/vim-install-packages.sh
NOTE: Existing dotfiles (.zshrc
, .bash_profile
, .bashrc
, .gitconfig
, .vimrc
and so on) will be moved to backup
directory.
Optional Settings for Fish
If you'd like to use fish
instead of zsh
, this provides next settings as follows.
echo /usr/local/bin/fish | sudo tee -a /etc/shells # enable fish shell
fish
fish ./bin/fisher-install.fish
fish ./bin/fish-setup.fish
chsh -s (which fish) # change default shell to fish
The above settings are not perfect so far because I use zsh
. You also have to convert your .zshrc
to the config.fish
.
Changelog
1. [Deprecated] Sync Sublime Text settings on Dropbox
I don't longer use Sublime Text. I recommend to use Visual Studio Code instead.
If you'd still like to use Sublime Text, on the promise that you put your settings on ~/Dropbox/SyncSettings/Sublime/User
, you can sync settings after you install Sublime Text and Package Control.
bash ./bin/dropbox-link-sublime3.sh
2. [Updated] Changed all settings for Zsh
The default interactive shell became zsh
on macOS Catalina so every setting was changed for zsh
.