Personal notes about macOS development environment setup.
Homebrew setup
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
As found in this Stack Overflow's post
sudo mkdir /usr/local/include
sudo mkdir /usr/local/Frameworks
sudo chown -R $(whoami) $(brew --prefix)/*
Install git throught Homebrew
brew install git
Create a global .gitignore file, which is a list of rules for ignoring files in every Git repository on your computer. For example, you might create the file at
git config --global core.excludesfile ~/.gitignore_global
The Octocat has a Gist containing some good rules to add to this file.
brew install zsh
sudo nano /etc/shells
The resulting /etc/shells
file should look like this:
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/zsh
The /usr/local/bin/zsh
location is the symlink Homebrew creates when installing zsh.
To actually change the shell assigned to the user account run
chsh -s /usr/local/bin/zsh
The install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
On other environments, you can copy and paste these commands to your terminal. Comments are fine too.
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
Then install https://github.com/ryanoasis/nerd-fonts#option-3-install-script
sudo easy_install pip
sudo pip install ansible
Then create system wide Ansible directory with sudo mkdir /etc/ansible
and copy the default Ansible configuration file
sudo curl -L https://raw.githubusercontent.com/ansible/ansible/devel/examples/ansible.cfg -o /etc/ansible/ansible.cfg
WSCAT
- All code goes in ~/code
- Inside ~/code folder, projects follows topic, platform and seriousness paradigms
LNAV
MIT