Developer's quick starter for your NEW MacBook. You can set up your MacBook quickly and easily after you bought it.
- OS: macOS Catalina over 10.15
- Git installed
- Not only
bash
but alsozsh
works
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.
curl -fsSL https://raw.githubusercontent.com/keidrun/dotfiles/master/install.sh | bash
relogin
Step2. Install Brewfile
cd 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.
Step3. Install sdkman
sudo bash ./bin/sdk-install.sh
Step4. Install anyenv
bash ./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
bash ./bin/cli-tools-install.sh
- 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
.
bash ./bin/code-setup.sh && bash ./bin/code-install-extensions.sh
After that, you just enjoy to develop.
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.
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
.
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
The default interactive shell became zsh
on macOS Catalina so every setting was changed for zsh
.