List of useful Mac apps I use daily + profiles for my home directory.
[user]
name = Eric Rasch
email = ericrasch@gmail.com
[alias]
ci = commit
co = checkout
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
[mergetool]
keepBackup = true
[core]
editor = subl -w
filemode = false
pager = less -R
[push]
default = current
[color]
ui = auto
diff = auto
status = auto
branch = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = blue
[color "diff"]
meta = yellow bold
frag = magenta bold
old = white red
new = green bold
[color "status"]
added = yellow
changed = black magenta
untracked = black cyan
[diff]
renames = true
[alias]
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
[url "https://"]
insteadOf = git://
[format]
pretty = "Commit: %C(yellow)%H%nAuthor: %C(green)%aN <%aE>%nDate: (%C(red)%ar%Creset) %ai%nSubject: %s%n%n%b"
# Aliases
alias bex="bundle exec"
alias proddeploy="bundle exec production deploy"
alias nbb-install="npm install && bower install && bundle install"
alias bb-install="bower install && bundle install"
alias phpw="open http://localhost:8000 && php -S localhost:8000"
# Path to the bash it configuration
export BASH_IT="/Users/erasch/.bash_it"
# Lock and Load a custom theme file
# location /.bash_it/themes/
# export BASH_IT_THEME='bobby'
export BASH_IT_THEME='powerline-m'
# (Advanced): Change this to the name of your remote repo if you
# cloned bash-it with a remote other than origin such as `bash-it`.
# export BASH_IT_REMOTE='bash-it'
# Your place for hosting Git repos. I use this for private repos.
# export GIT_HOSTING='git@git.domain.com'
# Set my editor and git editor
export EDITOR="/usr/local/bin/subl -w"
export GIT_EDITOR='/usr/local/bin/subl -w'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/djl/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
# Load Bash It
source $BASH_IT/bash_it.sh
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color
# VPN Terminal Service
function vpn-start {
/usr/bin/env osascript <<-EOF
tell application "System Events"
tell current location of network preferences
set VPN to service "MyVPN" -- your VPN name here
if exists VPN then connect VPN
delay 1
keystroke "myVPNpa$$w0rd" -- Your VPN pass here
repeat while (current configuration of VPN is not connected)
delay 1
end repeat
end tell
end tell
EOF
}
function vpn-halt {
/usr/bin/env osascript <<-EOF
tell application "System Events"
tell current location of network preferences
set VPN to service "MyVPN" -- your VPN name here
if exists VPN then disconnect VPN
end tell
end tell
return
EOF
}subl . to open current folders/files from TerminalMost of these are needed for firing up Genesis/Evolution
sudo easy_install pipsudo npm install -g yosudo npm install -g bowersudo npm install -g generator-genesis-wordpresssudo npm install -g generator-evolution-wordpresssudo vagrant plugin install vagrant-hostmanagersudo vagrant plugin install vagrant-listsudo gem install bundlersudo gem install capistranosudo pip install ansiblecurl https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub >> ~/.ssh/authorized_keys