initial commit

This commit is contained in:
Donald Burr 2015-02-14 21:21:40 -08:00
commit c3b94b7106
91 changed files with 56958 additions and 0 deletions

117
dotfiles/dot.bashrc Normal file
View file

@ -0,0 +1,117 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls -lFh --color=auto'
alias lsc='ls -CFh --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
alias h="history 20"
alias j="jobs"
alias du="du -h"
alias df="df -h"
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
# set up ibeacon
export IBEACON_UUID=37db7c0b-c706-4374-8f96-d37ba5e1b0a6
export IBEACON_MAJOR=42
export IBEACON_MINOR=1
export NODE_PATH="/usr/lib/node_modules"

38
dotfiles/dot.gitconfig Normal file
View file

@ -0,0 +1,38 @@
[user]
name = Donald Burr
email = dburr@borg-cube.com
signingkey = dburr@borg-cube.com
[color]
ui = true
diff = auto
status = auto
branch = auto
[core]
#excludesfile = ~/.gitignore
editor = vim
autocrlf = input
[push]
default = current
[credential]
helper = osxkeychain
#helper = store
[alias]
tree = log --graph --simplify-by-decoration --pretty=format:'%d' --all
tree2 = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" --simplify-by-decoration
l = log --graph --oneline --decorate
ll = log --graph --oneline --decorate --branches --tags
lll = log --graph --oneline --decorate --all
lp = log --graph --all --format='%C(cyan dim) %p %Cred %h %C(white dim) %s %Cgreen(%cr)%C(cyan dim) <%an>%C(bold yellow)%d%Creset'
lsi = clean -ndX
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
gitignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
#[merge]
# ff = false

22
dotfiles/dot.profile Normal file
View file

@ -0,0 +1,22 @@
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

View file

@ -0,0 +1,23 @@
# current Mac desktop key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1REri3QFMLofxDKDjtAUVVJSUGp95aIjccuI9OYP/3XVv9ZIpcr1MXtz03k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VdBY35ZQ== dburr@xo-devel
# 1and1 server key (for automated backups)
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3vLUvXQZmbnRsj5stIJ+TidC7XaSAHuCPgLyZgcZOMts99OdejMxQzrUVvAmjk/jyQSFtgWvavL35yLlCYvBj0F0Y5Zmx96Muen5po4daDjh1+vzMEVJ3PzKuQgTzAa8/XYzavyDIXzErq0Qa4VR5fa5H/p6ZiBQSUolnOphBsEcMKcYOhXvLwuSamfdRhdvjlJYsDklZSYG7aKX/dYFXx6CtsNYkbpgU1m838b+9IWt90mmlCLT/Tlr/2BbG3w3F/2Sde2iNGGNrEWh1DOKGMDW4b4GYhpS5BW5N6K9CcFWUjaJnPShl8/U3XrsO/HIwffDQJ/GesigxSz3znFCOQ== root@server.borg-cube.com
# Linux key on Nadesico
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAx4WVbrJpNVoYXy7T8C9CBFITx154DFQxm/I1eJnRYMTI2EZMmZWVJTGzActrBcYplG+6duStAh/VmYGEfhvx8kTbBZu0iI8AYzeZhYyfT2y5/vPQzp5Bs5AD8M6Kxyc6Bli0Mzr/ofpACAh7OJ1EIvE/oRPPxBYqAS2/Q3ihvb7JE1aKE1EDGqrwxS45dV6uc0tF1BFUAWDCHAixEzM92+HNeEILr7xAtfnUMKOUptPy6SlUZNZeOzJkEOQ9bXbzMZ0cbDb8l6E7bHgvJZ7ywYcV7dIcGJhm02ilbTcomhzhDsfagPYpJC/dPkn5npIvxPRBRIbPmijCWiLZIUhV6Q== dburr@Nadesico
# BorgPhone iSSH key
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAwH/mXBc5sKfArdsTJm9TlfbnLvGStl7UUZ0WSMW5puu58+ayxY+l7x3/ESTQfqx69Ig36XjF96M9saPaM3DjFm3S/f0ULPAIefqyaQWQU9XFR1vZ3LeDd7hGL4QhYLIUh2oEu8rUobYuifVj96GFuqNZqP+G+Z8tbATwa95SE3s= iphone-rsa-key-20130919
# iPADD iSSH key
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBnaiJS9/RotSN9l2niAGCdds+h1CD8Sh24wddE1VQkNGxquYk9lkqtiq9lR6ZD6HvVxtKu19qA0VaT+Wb/7IK3uIJfLpzp66jwBU9+obUjOkEQvSevIPu1TO8MXLmeboiIliypI1HyCQDiIi6C0irMPIAmbgryJaj1s69vk1sikQ== iphone-rsa-key-20130919
# pbx
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAk/ZoHi5Ln2SFPZGLQx/Z7QMYK+/OBMu0ccRXU9oPiA5okkAcSfJoGSXEsnM6RxCdxKPyM3FIOE3KV2qqlsvbr9E9jNyfK0b4xYEVIy/eFFghZ4DLFBISGx3D4NM8cq7eNadnAH1RE6XXg10ZdwcQC9kGU98pBwAVz6efvA24i0bMVUUUKfs7Y2Ik6zanJJZnDD55Ta+HoafhzRrwbbUHhE0exHWqtE8MwskLwhVVWMC718CX2Nin6NK3WaqdP5MQe/A8qQ06/IM1pZPII6GNJ1N6I3phvfd59BOB6zOP7JiGfQLNFRDdh7j/3wINGkl/dVsQaAtljpumxL2IGsL0Nw== dburr@pbx

38
dotfiles/dot.vimrc Normal file
View file

@ -0,0 +1,38 @@
syntax on
filetype plugin indent on
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
" disable auto comment
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files
" "100 : will save up to 100 lines for each register
" :20 : up to 20 lines of command-line history will be remembered
" % : saves and restores the buffer list
" n... : where to save the viminfo files
set viminfo='10,\"100,:20,%,n~/.viminfo
function! ResCur()
let do_it = "YES"
if @% =~ "COMMIT_EDITMSG"
let do_it = "NO"
elseif @% =~ "MERGE_MSG"
let do_it = "NO"
endif
if do_it == "YES"
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END