- TODO
installgo.sh
- checks the machine characteristics and installs the proper Go version based on CPU architecturescreate-macos-boot-iso.sh
- used to create a bootable .iso file to use when creating macOS virtual machines in virtual boxinstalls.sh
- stripped down version ofsetup.sh
that focuses on installing essential apps and settings for a new dev machinesetup.sh
facilitates the scalable and proactive deliverables of running all the scripts andapt upgrade
I recommend you pick and choose what you want to use from this repo, and create your own dotfiles repo to which they can be added. Consider changing the git remote to point to your own personal dotfiles, or copy/paste mine into your existing dotfiles.
Your terminal and system configs are most likely custom to you, I've simply provided mine here so that you can receive some inspiration. Please save a copy of the files you want to take into your own dotfiles repo on your machine.
DISCLAIMER Carefully review the files and scripts to be sure they will meet your requirements. You may want to comment certain things out (such as the symlink creation in installs.sh
)
A brand new developer machine will most likely require you to install XCode and Command Line tools. There are a few solutions to this problem:
- When you start up your machine for the first time, go ahead and run
xcode-select --install
. This will install Git for you so that you can clone this repo through normal methods, like agit clone ...
- Use the commands below to download a tarball of the repo, unpack it, give the install script execution rights, and boom you're off.
# navigate to a director on your machine, in this instance, we'll use /Desktop
cd $HOME
# Use curl to download a tarball of our mac-setup-v2 branch
curl -L -o mac-setup.zip https://github.com/chrismgonzalez/dotfiles/archive/mac-setup.zip
# Unzip the archive we just downloaded
unzip mac-setup.zip
# navigate to to the ./scripts directory
cd dotfiles/bin
# make the script we want to run executable
chmod +x installs.sh
# run the script
./installs.sh
Clone the repo to a hard disk location of your choice, for me, it's the home directory.
cd $HOME
git clone https://github.com/chrismgonzalez/dotfiles.git
# change to the scripts directory
cd dotfiles/bin
# make it executable
chmod +x installs.sh
# run
./installs.sh
The rest of the repository contains various configuration files for a handful of tools such as:
.zshrc
.bashrc
.git-completion.bash
.osx
(OS X specific configuration -- use at your own risk, I recommend analyzing this file and running it independently from theinstalls.sh
script).vimrc
- Follow steps listed in the linked Github documentation here
Use the below steps to resolve any gpg signing issues on commit:
brew install gnupg
brew link --overwrite gnupg
brew install pinentry-mac
# Intel mac (older homebrew)
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
# M1 mac
echo "pinentry-program /opt/homebrew/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
# test the output (no errors means the above was successful)
echo "test" | gpg --clearsign # on linux it's gpg2 but brew stays as gpg
# now you can use GPG signing
git config --global gpg.program gpg # perhaps you had this already? On linux maybe gpg2
git config --global commit.gpgsign true # if you want to sign every commit
# After you have run a signed commit, you can verify with:
git log --show-signature -1