- Don't forget to change your default shell.
chsh -s /bin/bash
-
Install git on MacOS just by running
git
in the terminal.
mkdir ~/repos/
cd ~/repos/
git clone https://github.com/chrisbolin/configs
echo "source ~/repos/configs/bash.sh" > ~/.bash_profile
echo "source ~/repos/configs/bash.git.sh" >> ~/.bash_profile
exec bash -l
cp ~/repos/configs/vs-code.json ~/Library/Application\ Support/Code/User/settings.json
These are git options, not aliases (which are covered in bash.git.sh
above.
Overwrite .gitconfig
.
cp ~/repos/configs/git ~/.gitconfig
cp .vimrc ~
To update git with new config changes, just reverse the cp
commands above:
cp ~/Library/Application\ Support/Code/User/settings.json ~/repos/configs/vs-code.json
cp ~/.gitconfig ~/repos/configs/git