Skip to content
This is a collection of stuff that keeps me working somewhat efficiently.
PHP HTML Shell GDB Vim script Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vim
iterm_themes
snippets
src
.CFUserTextEncoding
.bash_profile
.bash_profile_details
.bash_prompt
.bashrc
.blurbs
.condarc
.config_macos
.curlrc
.dircolors
.dircolors.sample
.editorconfig
.exports
.extra
.flake8
.functions
.functions_functions.txt
.functions_testing_new
.gdbinit
.gvimrc
.hgignore
.hushlogin
.ignore
.info.cfg
.inputrc
.iterm2_shell_integration.bash
.iterm2_shell_integration.zsh
.lesshst
.macos
.old_functions
.osx
.path
.php_cs
.pre-commit-config.yaml
.pre-commit-template.yaml
.profile
.project_defaults
.pydocstylerc
.pylintrc
.pylintrc.original
.screenrc
.stCommitMsg
.stylelintrc.yaml
.theme
.tmux.conf
.tmux.conf.local
.travis.yml
.viminfo
.vimrc
.vimrc.local
.wakatime.cfg
.wgetrc
.yarnrc
.zshenv
.zshrc
.zshrc copy
.zshrc.pre-oh-my-zsh
CTL_SECRET.php
LICENSE
Michael_Treanor_public_key.asc
README.md
basic_text_colors.sh
bootstrap.sh
brew.sh
brew_fix.sh
brewlist
check_path.sh
chromium-flags.conf
dotnet-install.sh
git_gpg.php
inputrc
iterm2.json
kubectl.save
phive.phar.asc
seder
server.py2
setup_macos.sh
setup_macos_list.md
setup_ssh.sh
ssm
ssm.py
ssm_functions.txt
tmux.conf
travis_trigger.md
treehere.sh
xinitrc.txt

README.md

Macbook Pro Setup

Build Status Coverage License Bash Version Python Version

System setup for MacBook Pro using Mojave, Bash, and Python Development

This is my software development setup for a MacBook Pro (mid-2015, 16g ram, 256g SSD). It is the setup I currently use and may change frequently. I am a dabbler in many arts ... and far from expert in most areas. Take it for what it is worth to you.

Please feel free to offer suggestions and changes (contribution instructions below). I have been coding for many years, but mostly as a side activity ... as a tool to assist me in other endeavors ... so I have not had the 'hard time' invested of constant coding that many of you have.

Copyright © 2018-2019 Michael Treanor

Many original settings © 2018 Mathias Bynens

MIT License - enjoy ...

Installation

Warning: If you want to use this setup, you should fork this repository, review the code, and make changes to suit your needs.

If you aren't sure, don't use it! This setup works for me for what I do. Don’t blindly use my settings unless you know what that entails. It could make your system inoperable or at least very annoying to use! Use at your own risk!

Using Git and the bootstrap script

You can clone the repository wherever you want. (I like to keep it in ~/.dotfiles) The bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/skeptycal/dotfiles.git && cd dotfiles && source bootstrap.sh

To update, cd into your local dotfiles repository and then:

source bootstrap.sh

Alternatively, to update while avoiding the confirmation prompt:

set -- -f; source bootstrap.sh

Specify the $PATH

If ~/.path exists, it will be sourced along with the other files, before any feature testing (such as detecting which version of ls is being used) takes place.

Here’s an example ~/.path file that adds /usr/local/bin to the $PATH:

export PATH="/usr/local/bin:$PATH"

Add custom commands without creating a new fork

If ~/.extra exists, it will be sourced after the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.

My ~/.extra looks something like this:

# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Michael Treanor"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="skeptycal@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Since it is sourced last, you could also use ~/.extra to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.

Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults:

./.macos

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):

./brew.sh

Some of the functionality of these dotfiles depends on formulae installed by brew.sh. If you don’t plan to run brew.sh, you should look carefully through the script and manually install any particularly important ones. A good example is Bash/Git completion: the dotfiles use a special version from Homebrew.

Feedback

Suggestions/improvements welcome!

Author

twitter/skeptycal

Michael Treanor

Based primarily on the open source work of:

twitter/mathias

Mathias Bynens

Thanks to…

Coverage Status

You can’t perform that action at this time.