- Make sure "Allow user to administer this computer" in System Preferences → Users & Groups is checked for the current user
- Get Homebrew (it will install macOS Command Line Tools, like git, as well):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install newer version of Bash
echo >> /Users/a/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/a/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install bash
sudo sh -c 'echo /opt/homebrew/bin/bash >> /etc/shells'
chsh -s /opt/homebrew/bin/bash
bash
- Get the dotfiles:
git clone https://github.com/antoni/dotfiles.git ~/dotfiles
- Install:
~/dotfiles/mac/install.sh
~/dotfiles/symlink.sh
~/dotfiles/mac/defaults.sh # Configure the system
- Automatically reattach tmux session using iTerm2: Open iTerm2's preferences, then select the 'Profiles' tab, and finally the 'General' pane. In the 'Command' section locate the 'Send text at start:' option and put in this command, substituting your session name for base.
tmux attach -t base || tmux new -s base
Write this Bash command so that it uses only command flags with double hyphen (wherever possible):
<bash command goes here>
Add comment to the top of this Bash function:
<bash command goes here>
## Credits
- [ur0n2/dotfiles-for-windows](https://github.com/ur0n2/dotfiles-for-windows), where I have taken few scripts/aliases/ideas from