From: Ben Beltran Date: Mon, 8 Oct 2012 16:36:55 +0000 (-0500) Subject: "First commit of dotfiles" X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/b100af91583692c01e3b68944875f8d8c2679983 "First commit of dotfiles" --- b100af91583692c01e3b68944875f8d8c2679983 diff --git a/bash_profile b/bash_profile new file mode 100644 index 0000000..86153d8 --- /dev/null +++ b/bash_profile @@ -0,0 +1,91 @@ +export PATH=/usr/local/bin:/usr/local/sbin:$PATH +export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH + +#Java HOME Adition +export JAVA_HOME=$(/usr/libexec/java_home) + +#Amazon Stuff +export EC2_HOME=/Users/benbeltran/Documents/code/tools/ec2-api-tools-1.5.2.4 +export PATH=$PATH:$EC2_HOME/bin +export EC2_PRIVATE_KEY=~/.ec2/pk-XBFB3HSRRZAILOFUPE44QAJI5M4Z5TNN.pem +export EC2_CERT=~/.ec2/cert-XBFB3HSRRZAILOFUPE44QAJI5M4Z5TNN.pem + +export TERM=screen-256color + +#git function +function _set_git_envar_info() { + GIT_BRANCH="" + GIT_PREFIX="" + GIT_STATE="" + CHECK_SHIT="lol" + RVM_COMMAND=$(rvm-prompt) + if [[ $RVM_COMMAND == "" ]] + then + RVM_COMMAND="system" + fi + if [[ $(which git 2> /dev/null) ]] + then + local STATUS + STATUS=$(git status 2>/dev/null) + if [[ -z $STATUS ]] + then + return + fi + GIT_BRANCH="$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')" + if [[ -n "$GIT_BRANCH" ]] + then + GIT_PREFIX=" on " + fi + if [[ "$STATUS" == *'working directory clean'* ]] + then + GIT_STATE="" + else + GIT_STATE="" + if [[ "$STATUS" == *'Changes to be committed:'* ]] + then + GIT_STATE='!' # Index has files staged for commit + fi + if [[ "$STATUS" == *'Changed but not updated:'* ]] + then + GIT_STATE="?" # Working tree has files modified but unstaged + fi + if [[ "$STATUS" == *'Untracked files:'* ]] + then + GIT_STATE='?' # Working tree has untracked files + fi + fi + fi +} + +export -f _set_git_envar_info + +#this thing for my prompt. +export PROMPT_COMMAND="_set_git_envar_info" +export PS1='\[\e[0;31m\]\u\[\e[0m\] at \[\e[0;33m\]\h\[\e[0m\] in \[\e[0;32m\]\w\[\e[0m\]$GIT_PREFIX\[\e[1;34m\]$GIT_BRANCH\[\e[0m\]\[\e[0;32m\]$GIT_STATE \[\e[0;33m\]($RVM_COMMAND) \[\e[0m\] \n\$ ' + +#display fortune when I start +echo -e "\033[30m" +/usr/local/bin/fortune +echo -e "\033[m" + +#Editor. +export EDITOR="vim" +export VISUAL="vim" + +#some aliases. +alias dwarffortress="/Applications/Dwarf\ Fortress/df" +alias ls="ls -FG" +alias rspec="rspec --color" + +#Git utility aliases +alias gpsc="git push origin "+$GIT_BRANCH +alias gplc="git pull origin "+$GIT_BRANCH + +#Enable Bash Completion +if [ -f `brew --prefix`/etc/bash_completion ]; then + . `brew --prefix`/etc/bash_completion +fi + +#Screeninator and RVM scripts +[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm + diff --git a/task/completed.data b/task/completed.data new file mode 100644 index 0000000..fd58e8a --- /dev/null +++ b/task/completed.data @@ -0,0 +1,2 @@ +[description:"Read task documents later" end:"1349713622" entry:"1349713607" status:"deleted" uuid:"9dbdd69c-4533-409f-a4a0-c7946ca84adf"] +[description:"Pay Bills" end:"1349713615" entry:"1349713600" priority:"H" status:"completed" uuid:"ac7e103e-c08b-497d-a37a-03b1942f9536"] diff --git a/task/pending.data b/task/pending.data new file mode 100644 index 0000000..e69de29 diff --git a/task/undo.data b/task/undo.data new file mode 100644 index 0000000..8d3222e --- /dev/null +++ b/task/undo.data @@ -0,0 +1,14 @@ +time 1349713600 +new [description:"Pay Bills" entry:"1349713600" priority:"H" status:"pending" uuid:"ac7e103e-c08b-497d-a37a-03b1942f9536"] +--- +time 1349713607 +new [description:"Read task documents later" entry:"1349713607" status:"pending" uuid:"9dbdd69c-4533-409f-a4a0-c7946ca84adf"] +--- +time 1349713615 +old [description:"Pay Bills" entry:"1349713600" priority:"H" status:"pending" uuid:"ac7e103e-c08b-497d-a37a-03b1942f9536"] +new [description:"Pay Bills" end:"1349713615" entry:"1349713600" priority:"H" status:"completed" uuid:"ac7e103e-c08b-497d-a37a-03b1942f9536"] +--- +time 1349713624 +old [description:"Read task documents later" entry:"1349713607" status:"pending" uuid:"9dbdd69c-4533-409f-a4a0-c7946ca84adf"] +new [description:"Read task documents later" end:"1349713622" entry:"1349713607" status:"deleted" uuid:"9dbdd69c-4533-409f-a4a0-c7946ca84adf"] +--- diff --git a/taskrc b/taskrc new file mode 100644 index 0000000..d79d58a --- /dev/null +++ b/taskrc @@ -0,0 +1,27 @@ +# [Created by task 2.1.1 10/8/2012 11:24:32] +# Taskwarrior program configuration file. +# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-faq', +# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc' + +# Here is an example of entries that use the default, override and blank values +# variable=foo -- By specifying a value, this overrides the default +# variable= -- By specifying no value, this means no default +# #variable=foo -- By commenting out the line, or deleting it, this uses the default + +# Use the command 'task show' to see all defaults and overrides + +# Files +data.location=/Users/benbeltran/.task + +# Color theme (uncomment one to use) +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/light-16.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/light-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-16.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-red-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-green-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-blue-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-violets-256.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-yellow-green.theme +#include /usr/local/Cellar/task/2.1.1/share/doc/task/rc/dark-gray-256.theme + diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..8919cad --- /dev/null +++ b/tmux.conf @@ -0,0 +1,34 @@ +#Integrate Mouse Scrolling +# setw -g mode-mouse on +# set-option -g mouse-select-pane on + +#Increase the scrollback +set -g history-limit 5000 + +#Screen-like prefix. +set -g prefix C-a +bind-key C-a last-window + +#Better bindings for window split +unbind % # Remove default binding since we’re replacing +bind | split-window -h +bind - split-window -v + +#Customize the status bars. +set -g status-bg cyan +set -g status-fg white +set -g status-left-length 24 +set -g status-left '#[fg=black]#[bg=white]#H-#S' +set-window-option -g window-status-current-bg red +set -g status-right '#[fg=black]#[bg=white]#(uptime)' +set -g status-right-length 70 + +#Set Activity monitoring. +setw -g monitor-activity on +set -g visual-activity on + +# Vi keys in copy mode. +setw -g mode-keys vi + +# Set color mode. +set -g default-terminal "screen-256color" diff --git a/vim b/vim new file mode 160000 index 0000000..c9255cd --- /dev/null +++ b/vim @@ -0,0 +1 @@ +Subproject commit c9255cde2579050273bfcfa23468480c0715dbd3 diff --git a/vimrc b/vimrc new file mode 100755 index 0000000..abda374 --- /dev/null +++ b/vimrc @@ -0,0 +1,164 @@ +set nocompatible + +set number +set ruler +syntax on + +" Set encoding +set encoding=utf-8 + +" Whitespace stuff +set nowrap +set tabstop=2 +set shiftwidth=2 +set softtabstop=2 +set expandtab +set list listchars=tab:\ \ ,trail:· + +" Searching +set hlsearch +set incsearch +set ignorecase +set smartcase + +" Tab completion +set wildmode=list:longest,list:full +set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/* + +" Status bar +set laststatus=2 + +" Without setting this, ZoomWin restores windows in a way that causes +" equalalways behavior to be triggered the next time CommandT is used. +" This is likely a bludgeon to solve some other issue, but it works +set noequalalways + +" NERDTree configuration +let NERDTreeIgnore=['\.pyc$', '\.rbc$', '\~$'] +map n :NERDTreeToggle + +" CTags +map rt :!ctags --extra=+f -R * +map :tnext + +" Remember last location in file +if has("autocmd") + au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") + \| exe "normal g'\"" | endif +endif + +function s:setupWrapping() + set wrap + set wrapmargin=2 + set textwidth=72 +endfunction + +function s:setupMarkup() + call s:setupWrapping() + map p :Hammer +endfunction + +" make uses real tabs +au FileType make set noexpandtab + +" Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby +au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby + +" md, markdown, and mk are markdown and define buffer-local preview +au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup() + +" add json syntax highlighting +au BufNewFile,BufRead *.json set ft=javascript + +au BufRead,BufNewFile *.txt call s:setupWrapping() + +" make Python follow PEP8 ( http://www.python.org/dev/peps/pep-0008/ ) +au FileType python set softtabstop=4 tabstop=4 shiftwidth=4 textwidth=79 + +" allow backspacing over everything in insert mode +set backspace=indent,eol,start + +" load the plugin and indent settings for the detected filetype +filetype plugin indent on + +" Opens an edit command with the path of the currently edited file filled in +" Normal mode: e +map e :e =expand("%:p:h") . "/" + +" Opens a tab edit command with the path of the currently edited file filled in +" Normal mode: t +map te :tabe =expand("%:p:h") . "/" + +" Inserts the path of the currently edited file into a command +" Command mode: Ctrl+P +cmap =expand("%:p:h") . "/" + +" Unimpaired configuration +" Bubble single lines +nmap [e +nmap ]e +" Bubble multiple lines +vmap [egv +vmap ]egv + +" Enable syntastic syntax checking +let g:syntastic_enable_signs=1 +let g:syntastic_quiet_warnings=1 + +" gist-vim defaults +if has("mac") + let g:gist_clip_command = 'pbcopy' +elseif has("unix") + let g:gist_clip_command = 'xclip -selection clipboard' +endif +let g:gist_detect_filetype = 1 +let g:gist_open_browser_after_post = 1 + +" Use modeline overrides +set modeline +set modelines=10 + +" Default color scheme +set t_Co=256 +color railscasts + +" Directories for swp files +set backupdir=~/.vim/backup +set directory=~/.vim/backup + +" Turn off jslint errors by default +let g:JSLintHighlightErrorLine = 0 + +" MacVIM shift+arrow-keys behavior (required in .vimrc) +let macvim_hig_shift_movement = 1 + +" % to bounce from do to end etc. +runtime! macros/matchit.vim + +" Show (partial) command in the status line +set showcmd + +" Include user's local vim config +if filereadable(expand("~/.vimrc.local")) + source ~/.vimrc.local +endif + +" Mapping for TagBar +nmap :TagbarToggle + +" Mapping for CommandTBuffer +map t :CtrlP +map T :CtrlPBuffer +map R :CtrlPClearCache + +" Color Column +set colorcolumn=81 + +" Add Pathogen +call pathogen#infect() + +" Folding Settings +set foldmethod=syntax +set foldnestmax=10 +set nofoldenable +set foldlevel=1