Merge branch 'master' of github.com:meatballhat/dotfiles

Conflicts:
	tmux.conf
main
Dan Buch 8 years ago
commit 08907faa6f

3
.gitignore vendored

@ -1 +1,2 @@
/janus/go /janus/*
byobu/.ssh-agent

3
.gitmodules vendored

@ -1,3 +0,0 @@
[submodule "janus/aspen"]
path = janus/aspen
url = git://github.com/patcoll/aspen.vim.git

@ -0,0 +1,4 @@
---
language: generic
sudo: false
script: make

@ -1,21 +1,13 @@
SOURCES := $(shell ls | egrep -v 'README|Makefile') SOURCES := $(shell ls | grep -E -v 'README|Makefile')
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES)) TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: % $(HOME)/.%: %
ln -sv $(PWD)/'$^' '$@' $(RM) '$@' && ln -svf '$(PWD)/$^' '$@'
all: $(TARGETS) $(HOME)/.janus/go
.PHONY: all
all: $(TARGETS)
.PHONY: echo
echo: echo:
@echo SOURCES=$(SOURCES) @echo SOURCES=$(SOURCES)
@echo TARGETS=$(TARGETS) @echo TARGETS=$(TARGETS)
$(HOME)/.janus/go:
test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go ; true
.PHONY: all echo

@ -1 +0,0 @@
--all-types

@ -17,6 +17,7 @@ alias s="cat $HOME/.ssh/config | grep '^Host ' | sed \"s/Host //\" | sort | uniq
alias sS='TERM=xterm screen -Rd -S ' alias sS='TERM=xterm screen -Rd -S '
alias scr='TERM=xterm screen -Rd' alias scr='TERM=xterm screen -Rd'
alias sl="screen -ls" alias sl="screen -ls"
alias tmux='TERM=xterm-256color tmux -2'
case "$(uname | tr '[:upper:]' '[:lower:]')" in case "$(uname | tr '[:upper:]' '[:lower:]')" in
darwin) darwin)

@ -70,9 +70,9 @@ _bash_profile_main() {
get_ssh_agent get_ssh_agent
which gpg-agent && test -d ~/.gnupg && get_gpg_agent which gpg-agent && test -d ~/.gnupg && get_gpg_agent
_source_if_exists "$HOME/.gvm/scripts/gvm" #_source_if_exists "$HOME/.gvm/scripts/gvm"
_source_if_exists "$HOME/.gvmrc" #_source_if_exists "$HOME/.gvmrc"
_source_if_exists "$HOME/src/gocode/src/.env" #_source_if_exists "$HOME/src/gocode/src/.env"
unset _get_hostname unset _get_hostname
unset _source_host_specific_rcfile unset _source_host_specific_rcfile
@ -83,4 +83,7 @@ _bash_profile_main() {
_bash_profile_main _bash_profile_main
# added by travis gem
[[ -f ~/.travis/travis.sh ]] && source ~/.travis/travis.sh
# vim:filetype=sh # vim:filetype=sh

@ -12,3 +12,9 @@ then
fi fi
# vim:filetype=sh # vim:filetype=sh
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
# added by travis gem
[ -f /Users/me/.travis/travis.sh ] && source /Users/me/.travis/travis.sh

@ -0,0 +1,5 @@
BYOBU_DARK=black
BYOBU_LIGHT=white
BYOBU_ACCENT=magenta
BYOBU_HIGHLIGHT=red
MONOCHROME=0

@ -0,0 +1 @@
[ -r /usr/share/byobu/profiles/bashrc ] && . /usr/share/byobu/profiles/bashrc #byobu-prompt#

@ -1 +1 @@
gem: --no-rdoc --ri gem: --no-rdoc --no-ri

@ -5,3 +5,7 @@ tags
TAGS TAGS
*.rbc *.rbc
*.class *.class
.vagrant
*.swp
.DS_Store
.~lock*

@ -1,80 +1,96 @@
[user] [user]
name = Dan Buch name = Dan Buch
email = daniel.buch@gmail.com email = daniel.buch@gmail.com
[github]
user = meatballhat
[core] [core]
excludesfile = ~/.git-global-ignores excludesfile = ~/.git-global-ignores
autocrlf = false editor = vim
filemode = true
autocrlf = false
pager = less -FRXx2
[clean]
requireForce = false
[branch]
autosetuprebase = remote
autosetupmerge = true
mergeoptions = --no-commit --no-ff
[daemon] [daemon]
uploadpack = true uploadpack = true
uploadarch = true uploadarch = true
receivepack = true receivepack = true
[push] [push]
default = matching default = current
[color] [color]
ui = auto ui = auto
[color "branch"] [color "branch"]
current = yellow reverse current = yellow reverse
local = yellow local = yellow
remote = green remote = green
[color "diff"] [color "diff"]
meta = yellow bold meta = yellow bold
frag = magenta bold frag = magenta bold
old = red bold old = red bold
new = green bold new = green bold
[color "status"] [color "status"]
added = yellow added = yellow
changed = green changed = green
untracked = cyan untracked = cyan
[alias] [alias]
a = add a = add
ad = add ad = add
addd = add addd = add
br = branch br = branch
bra = branch -a bra = branch -a
brr = branch -r brr = branch -r
ci = commit ci = commit
co = checkout co = checkout
d = diff d = diff
dc = diff --cached dc = diff --cached
di = diff di = diff
dif = diff dif = diff
l = ls-files l = ls-files
ls = ls-files ls = ls-files
nuke = clean -dfx nuke = clean -dfx
pr = pull --rebase pr = pull --rebase
s = status --short s = status --short
st = status st = status
sta = stash sta = stash
stcq = diff --cached --name-only stcq = diff --cached --name-only
stq = diff --name-only stq = diff --name-only
t = tag t = tag
ta = tag ta = tag
tags = tag tags = tag
slog = log git-svn..
sup = svn fetch --all
spush = svn dcommit
srb = rebase git-svn
cm = checkout master
lm = log master..
rt = rebase trunk
lt = log trunk..
ct = checkout svn/trunk
logv = log --name-status
slog = log git-svn..
sup = svn fetch --all
spush = svn dcommit
srb = rebase git-svn
[clean] rpo = remote prune origin
requireForce = false
cm = checkout master
lm = log master..
rt = rebase trunk
lt = log trunk..
ct = checkout svn/trunk
logv = log --name-status
hug = blame
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# vim:filetype=cfg # vim: set filetype=cfg noexpandtab:
[commit]
template = /Users/me/.gittemplate

@ -0,0 +1,11 @@
# 50-character subject line
#
# 72-character wrapped longer description. This should answer:
#
# - Why was this change necessary?
# - How does it address the problem?
# - Are there any side effects?
#
# Include a link to the ticket, if any.

@ -1 +0,0 @@
Subproject commit 7225b212474c2add040259114061ec1d9a7721d7

@ -1,91 +0,0 @@
" Protocol Buffers - Google's data interchange format
" Copyright 2008 Google Inc.
"
" Licensed under the Apache License, Version 2.0 (the "License");
" you may not use this file except in compliance with the License.
" You may obtain a copy of the License at
"
" http:"www.apache.org/licenses/LICENSE-2.0
"
" Unless required by applicable law or agreed to in writing, software
" distributed under the License is distributed on an "AS IS" BASIS,
" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
" See the License for the specific language governing permissions and
" limitations under the License.
" This is the Vim syntax file for Google Protocol Buffers.
"
" Usage:
"
" 1. cp proto.vim ~/.vim/syntax/
" 2. Add the following to ~/.vimrc:
"
" augroup filetype
" au! BufRead,BufNewFile *.proto setfiletype proto
" augroup end
"
" Or just create a new file called ~/.vim/ftdetect/proto.vim with the
" previous lines on it.
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case match
syn keyword pbTodo contained TODO FIXME XXX
syn cluster pbCommentGrp contains=pbTodo
syn keyword pbSyntax syntax import option
syn keyword pbStructure package message group
syn keyword pbRepeat optional required repeated
syn keyword pbDefault default
syn keyword pbExtend extend extensions to max
syn keyword pbRPC service rpc returns
syn keyword pbType int32 int64 uint32 uint64 sint32 sint64
syn keyword pbType fixed32 fixed64 sfixed32 sfixed64
syn keyword pbType float double bool string bytes
syn keyword pbTypedef enum
syn keyword pbBool true false
syn match pbInt /-\?\<\d\+\>/
syn match pbInt /\<0[xX]\x+\>/
syn match pbFloat /\<-\?\d*\(\.\d*\)\?/
" TODO: .proto also supports C-style block comments;
" see /usr/share/vim/vim70/syntax/c.vim for how it's done.
syn region pbComment start="//" skip="\\$" end="$" keepend contains=@pbCommentGrp
syn region pbString start=/"/ skip=/\\"/ end=/"/
syn region pbString start=/'/ skip=/\\'/ end=/'/
if version >= 508 || !exists("did_proto_syn_inits")
if version < 508
let did_proto_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink pbTodo Todo
HiLink pbSyntax Include
HiLink pbStructure Structure
HiLink pbRepeat Repeat
HiLink pbDefault Keyword
HiLink pbExtend Keyword
HiLink pbRPC Keyword
HiLink pbType Type
HiLink pbTypedef Typedef
HiLink pbBool Boolean
HiLink pbInt Number
HiLink pbFloat Float
HiLink pbComment Comment
HiLink pbString String
delcommand HiLink
endif
let b:current_syntax = "proto"

@ -1,42 +0,0 @@
From 7a9d955c0141d4adb148ba0b128d302b82f2f307 Mon Sep 17 00:00:00 2001
From: Spencer Deinum <spencerdeinum@gmail.com>
Date: Thu, 30 Aug 2012 00:43:12 -0400
Subject: [PATCH] Edited scala checker to use scalac, with the
-Ystop-after:refchecks option.
This means syntax checking is done via the compiler instead of the
interpreter, so it won't choke on things like package definitions.
The -Ystop-after:refchecks option will stop before code is actually
generated, so we don't emit any class files.
Signed-off-by: Spencer Deinum <spencerdeinum@gmail.com>
---
syntax_checkers/scala.vim | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/syntax_checkers/scala.vim b/syntax_checkers/scala.vim
index f6f05af..d603246 100644
--- a/syntax_checkers/scala.vim
+++ b/syntax_checkers/scala.vim
@@ -15,7 +15,7 @@ endif
let loaded_scala_syntax_checker = 1
"bail if the user doesnt have the scala binary installed
-if !executable("scala")
+if !executable("scalac")
finish
endif
@@ -24,7 +24,7 @@ if !exists("g:syntastic_scala_options")
endif
function! SyntaxCheckers_scala_GetLocList()
- let makeprg = 'scala '. g:syntastic_scala_options .' '. shellescape(expand('%')) . ' /dev/null'
+ let makeprg = 'scalac -Ystop-after:refchecks '. g:syntastic_scala_options .' '. shellescape(expand('%'))
let errorformat = '%f\:%l: %trror: %m'
--
1.7.10

@ -0,0 +1,7 @@
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='$(date -u +%Y-%m-%dT%H:%M:%S) ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}🙀 %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

@ -1,8 +1,9 @@
# need me some vi mode # need me some vi mode
setw -g mode-keys vi setw -g mode-keys vi
set -g default-command /usr/bin/zsh # note to self: learn ye a zsh
set -g default-shell /usr/bin/zsh set -g default-command /bin/zsh
set -g default-shell /bin/zsh
# copy-pasta in a vi-like way # copy-pasta in a vi-like way
unbind [ unbind [
@ -23,3 +24,6 @@ set -s escape-time 0
# i forget easily # i forget easily
set -g history-limit 100000 set -g history-limit 100000
# colors!
set -g default-terminal 'screen-256color'

@ -1,8 +1,7 @@
# === EDIT FILE LOCATIONS BELOW === # === EDIT FILE LOCATIONS BELOW ===
# Your todo.txt directory # Your todo.txt directory
#export TODO_DIR="/Users/gina/Documents/todo" export TODO_DIR="$HOME/Dropbox/dan/todo"
export TODO_DIR="$HOME/Dropbox/buchfam/todo"
# Your todo/done/report.txt locations # Your todo/done/report.txt locations
export TODO_FILE="$TODO_DIR/todo.txt" export TODO_FILE="$TODO_DIR/todo.txt"

27
vimrc

@ -0,0 +1,27 @@
syntax on
filetype on
filetype indent on
filetype plugin on
set backspace=indent,eol,start
set directory^=~/.vim/_temp//
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set nowrap
set number
set smartcase
set tabstop=4
set textwidth=67
map ,t :w<CR>
map ,- :nohl<CR>
map ,w :%s/ *$//<CR>
let g:go_fmt_command = "goimports"
call pathogen#infect()
colo summerfruit256

@ -4,7 +4,7 @@ set tabstop=4
set shiftwidth=4 set shiftwidth=4
set softtabstop=4 set softtabstop=4
map ,t :w<CR> autocmd FileType * map ,t :w<CR>
map ,m :w\|:make<CR><CR> map ,m :w\|:make<CR><CR>
map ,- :nohl<CR> map ,- :nohl<CR>
@ -13,12 +13,30 @@ autocmd BufNew,BufRead *.feature,*.rb,*.ru,*.xml,*.html,*.htm,Gemfile,Rakefile,P
\| set tabstop=2 \| set tabstop=2
\| set softtabstop=2 \| set softtabstop=2
autocmd FileType ruby set shiftwidth=2
\| set tabstop=2
\| set softtabstop=2
\| map ,t :RuboCop<CR>:w<CR>
autocmd FileType ruby map ,r :RuboCop<CR>
autocmd BufNew,BufRead *.ino,*.pde setf arduino
autocmd FileType arduino set tabstop=4
\| set softtabstop=4
\| let g:syntastic_cpp_check_header=0
\| map ,t :w<CR>:execute '!astyle' shellescape(expand('%'), 1)<CR>:e<CR>:make<CR><CR><CR>
" Set up some sane java compilation bits " Set up some sane java compilation bits
autocmd BufNew,BufRead *.java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%# autocmd BufNew,BufRead *.java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
\| set makeprg=ant\ -find\ build.xml \| set makeprg=ant\ -find\ build.xml
" remap ',t' in Go buffers to do :Fmt first " never expand tabs (multiline-strings) and remap ',t' to do :Fmt first in Go
autocmd BufNew,BufRead *.go map ,t :Fmt<CR>:w<CR> autocmd FileType go set noexpandtab
\| map ,t :Fmt<CR>:w<CR>
" add color column for a few file types
autocmd FileType go,python,ruby set colorcolumn=80
" highlighting sbt as scala, too " highlighting sbt as scala, too
autocmd BufNew,BufRead *.sbt set syn=scala autocmd BufNew,BufRead *.sbt set syn=scala
@ -39,7 +57,7 @@ endfunction
" MyNext() and MyPrev(): Movement between tabs OR buffers " MyNext() and MyPrev(): Movement between tabs OR buffers
function! MyNext() function! MyNext()
if exists( '*tabpagenr' ) && tabpagenr('$') != 1 if exists('*tabpagenr') && tabpagenr('$') != 1
" Tab support && tabs open " Tab support && tabs open
normal gt normal gt
else else
@ -48,7 +66,7 @@ function! MyNext()
endif endif
endfunction endfunction
function! MyPrev() function! MyPrev()
if exists( '*tabpagenr' ) && tabpagenr('$') != '1' if exists('*tabpagenr') && tabpagenr('$') != '1'
" Tab support && tabs open " Tab support && tabs open
normal gT normal gT
else else
@ -61,6 +79,9 @@ endfunction
nnoremap L :call MyNext()<CR> nnoremap L :call MyNext()<CR>
nnoremap H :call MyPrev()<CR> nnoremap H :call MyPrev()<CR>
" astyle the whole thing
map ,a :execute '!astyle' shellescape(expand('%'), 1)<CR>:e<CR>
" easy indentation in visual mode " easy indentation in visual mode
" This keeps the visual selection active after indenting. " This keeps the visual selection active after indenting.
" Usually the visual selection is lost after you indent it. " Usually the visual selection is lost after you indent it.
@ -92,6 +113,7 @@ endfun
" call it right away for certain files " call it right away for certain files
autocmd FileType python call LambastOver80Wide() autocmd FileType python call LambastOver80Wide()
autocmd FileType moin call LambastOver80Wide() autocmd FileType moin call LambastOver80Wide()
" autocmd FileType go call LambastOver80Wide()
" autocmd FileType javascript call LambastOver80Wide() " autocmd FileType javascript call LambastOver80Wide()
" autocmd FileType actionscript call LambastOver80Wide() " autocmd FileType actionscript call LambastOver80Wide()
autocmd FileType mail call LambastOver80Wide() autocmd FileType mail call LambastOver80Wide()
@ -120,7 +142,7 @@ if !has('gui_running')
set t_Co=256 set t_Co=256
"colorscheme gardener "colorscheme gardener
"colorscheme inkpot "colorscheme inkpot
colorscheme delek colorscheme molokai
endif endif
let g:valgrind_arguments='--leak-check=yes --num-callers=50' let g:valgrind_arguments='--leak-check=yes --num-callers=50'

@ -1,36 +0,0 @@
test -f /etc/rc.conf && source /etc/rc.conf
setxkbmap ${KEYMAP-dvorak}
DEFAULT="ratpoison"
case "$1" in
awe*)
exec awesome
;;
evil*)
exec evilwm
;;
open*)
exec openbox-session
;;
win*)
exec wmaker
;;
flux*)
exec startfluxbox
;;
gno*)
exec gnome-session
;;
rat*)
exec ratpoison
;;
*)
exec $DEFAULT
;;
esac
# vim:filetype=sh

136
zshrc

@ -1,13 +1,125 @@
HISTFILE=~/.zsh-histfile ZSH=$HOME/.oh-my-zsh
HISTSIZE=10000 ZSH_THEME=meatballhat
SAVEHIST=100000
setopt appendhistory extendedglob nomatch CASE_SENSITIVE="true"
unsetopt autocd beep notify
bindkey -v # Comment this out to disable bi-weekly auto-update checks
autoload -Uz compinit # DISABLE_AUTO_UPDATE="true"
compinit
# Uncomment to change how often before auto-updates occur? (in days)
export PS1="\$ " export UPDATE_ZSH_DAYS=3
function precmd() {
echo "$USER@$HOST:$(truncpwd)" # Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting
# for completion
COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(
autoenv
aws
bundler
cabal
command-not-found
cp
docker
gem
git
git-hubflow
golang
heroku
hk
knife
osx
pip
postgres
python
rails
rake-fast
rbenv
redis-cli
rsync
ruby
tmux
vagrant
vi-mode
)
fpath=(/usr/local/share/zsh/site-functions $fpath)
source $ZSH/oh-my-zsh.sh
unalias gb
# The completion for aws is not compatible with $fpath :scream_cat:
if [[ -f /usr/local/share/zsh/site-functions/_aws ]] ; then
source /usr/local/share/zsh/site-functions/_aws
fi
unsetopt correct_all
bindkey '^R' history-incremental-search-backward
path=(
$HOME/bin
$HOME/gopath/bin
$HOME/.rbenv/bin
$HOME/.rbenv/shims
$HOME/.phpenv/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
)
if which pyenv > /dev/null ; then
eval "$(pyenv init -)"
fi
export PYENV_ROOT='/usr/local/var/pyenv'
eval "$(phpenv init -)"
eval "$(gimme 1.4.2)" 2>/dev/null
export GOPATH="$HOME/gopath"
CDPATH="$HOME/workspace:$HOME/src:$HOME/Development/src:$HOME/repos"
for prefix in github.com github.com/travis-ci github.com/meatballhat code.google.com/p ; do
CDPATH="$HOME/gopath/src/$prefix:$CDPATH"
done
export GPG_TTY=$(tty)
source ~/.bash_aliases
function dump-ssh-agent() {
env | awk '/SSH/ {
sub(/=/, "=\"", $1)
sub(/$/, "\"", $1)
print "export " $1
}' | tee ~/.ssh/agent.out
}
function load-ssh-agent() {
source ~/.ssh/agent.out
} }
[[ -e ~/.zshenv ]] && source ~/.zshenv
[ -f ~/.travis/travis.sh ] && source ~/.travis/travis.sh
[ -f ~/google-cloud-sdk/path.zsh.inc ] && source ~/google-cloud-sdk/path.zsh.inc
[ -f ~/google-cloud-sdk/completion.zsh.inc ] && source ~/google-cloud-sdk/completion.zsh.inc

Loading…
Cancel
Save