]> apps.delaporte.us Git - dotfiles.git/commitdiff
These are the dotfiles in your neighborhood.
authorEdward Delaporte <edthedev@gmail.com>
Mon, 23 Feb 2015 22:37:57 +0000 (16:37 -0600)
committerEdward Delaporte <edthedev@gmail.com>
Mon, 23 Feb 2015 22:37:57 +0000 (16:37 -0600)
.gitmodules [new file with mode: 0644]
antigen [new submodule]
vimrc [new file with mode: 0644]
zshrc [new file with mode: 0644]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..4c2a7aa
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "antigen"]
+       path = antigen
+       url = https://github.com/zsh-users/antigen.git
diff --git a/antigen b/antigen
new file mode 160000 (submodule)
index 0000000..30098c1
--- /dev/null
+++ b/antigen
@@ -0,0 +1 @@
+Subproject commit 30098c1d9955b8548aa827588c0d2c9be077c6f2
diff --git a/vimrc b/vimrc
new file mode 100644 (file)
index 0000000..8f2c4f2
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,192 @@
+" -------------------------------------------------------
+"
+"       EdTheDev's Minimal .vimrc 
+"
+"  Everything belongs in a Vundle plugin.
+" -------------------------------------------------------
+
+" When setting up on a new machine, remember to:
+" cd ~
+" git clone https://github.com/gmarik/Vundle.vim.git
+" ~/.vim/bundle/Vundle.vim
+" vim +BundleInstall +qall
+"
+" Automatically setup Vundle on first run
+if !isdirectory(expand("~/.vim/bundle/Vundle.vim"))
+     call system("git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle")
+     endif
+
+" Let the leader key be ,  
+let mapleader=","
+
+" Easier Ex commands
+nnoremap ; :
+
+" iPad and Android keyboards have no ESC Key
+inoremap ii <esc>
+
+
+set smarttab
+
+set nocompatible              " be iMproved, required
+
+set omnifunc=syntaxcomplete#Complete
+
+filetype off                  " required
+
+set rtp+=~/.vim/bundle/Vundle.vim
+call vundle#begin()
+
+" =================
+" Here be Plugins!
+" =================
+
+" let Vundle manage Vundle
+" required! 
+Plugin 'gmarik/vundle'
+
+" Helper scripts for editing ReStructuredText
+" Plugin 'edthedev/vim-rst'
+Plugin 'edthedev/text-helper.vim'
+
+" EdTheDev's Minion file organizer.
+Plugin 'edthedev/minion'
+" let g:minion_map_keys = 0
+
+Plugin 'edthedev/rst-syntax.vim'
+
+" EdTheDev's Vim configuration for Python PEP8
+Plugin 'edthedev/vim-pep8'
+let g:minion_todo_map_keys = 1
+
+
+" let g:vimroom_ctermbackground = "black"
+"
+
+" Trac plugin for Vim
+" Plugin 'mjbrownie/Trac.vim'
+" :help trac
+" let g:tracServerList = {}
+" let g:tracServerList['sdg'] = 
+""     \'http://username:password@trac.nukulele.org/login/xmlrpc'
+
+"Plugin 'fmoralesc/vim-pad'
+" let g:pad_dir='~/Copy/notes'
+
+" Pelican.vim Revived!
+Plugin 'edthedev/pelican.vim'
+let g:pelican_blog_source = '~/Copy/blog'
+let g:pelican_blog_html = '~/blog_html'
+let g:pelican_git_master = 'git@bitbucket.org:edthedev/blog.git'
+let g:pelican_publish_server = 'uiucedward@hathor.dreamhost.com:~/edward.delaporte.us'
+
+" Low contrast color scheme for Gvim - much easier on the eyes.
+Plugin 'junegunn/seoul256.vim'
+
+" Display tag (function/method) outline
+Plugin 'majutsushi/tagbar'
+nmap <leader>t :TagbarToggle<Cr>
+
+" EdTheDev's Vim configuration for TODO list items.
+Plugin 'edthedev/vim-todo'
+let g:vim_todo_keys = 1
+
+" Automatic closing of parenthesis
+" Plugin 'Raimondi/delimitMate'
+"  - Caused syntax color problems for RST?
+
+" Browsing files made easier.
+Plugin 'scrooloose/nerdtree'
+nmap <leader>r :NERDTreeToggle<CR>
+
+" Async dispatch by Tim Pope
+Plugin 'tpope/vim-dispatch'
+
+" Bundle 'vim-scripts/confluencewiki.vim'
+"  - Caused syntax color problems for RST?
+"
+"Plugin 'jceb/vim-orgmode'
+"let g:org_todo_keywords=['TODO', 'DONE', 'WAITING', 'CANCELED']
+"let g:org_agenda_files=['~/Google Drive/index.org']
+
+Plugin 'edthedev/wordlike.vim'
+
+" Plugin 'xolox/vim-notes'
+" Add @Tag search support
+"Bundle 'fmoralesc/vim-pad'
+" let g:pad_dir='~/Copy/notes'
+
+" Distraction free writing.
+Plugin 'junegunn/goyo.vim'
+nnoremap <leader>w :Goyo<Cr>
+" Limelight doesn't work with iterm
+" Plugin 'junegunn/limelight.vim'
+" nnoremap <leader>w :Goyo<Cr>:Limelight<Cr>
+
+Plugin 'vim-scripts/pylint-mode'
+let g:PyLintCWindow = 1
+let g:PyLintSigns = 1
+let g:PyLintOnWrite = 1
+" let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913'
+" let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0201,R0901,R0903,R0904,R0913,E1002,E1103'
+" let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1002,E1101,E1103,E1120,R0201,R0901,R0903,R0904,R0913'
+let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0621,W0631,E1002,E1101,E1103,E1120,F0401,R0201,R0901,R0903,R0904,R0913'
+
+Plugin 'edthedev/arduino.vim'
+" Plugin 'edthedev/vim-arduino-ino'
+let g:arduino_compile_command = 'ino build --board-model=atmega328'
+" let g:arduino_compile_command = 'Dispatch ino build --board-model=atmega328'
+let g:arduino_upload_command = 'ino upload --board-model=atmega328'
+
+" Plugin 'tomswartz07/vim-todo'
+"
+Plugin 'edthedev/cmd.vim'
+
+Plugin 'itchyny/thumbnail.vim'
+" :Thumbnail
+"
+Plugin 'farseer90718/vim-taskwarrior'
+let g:task_rc_override = 'defaultwidth=999'
+" Read up on it here:  https://github.com/farseer90718/vim-taskwarrior
+"
+
+" For REST APIs
+Plugin 'nicwest/QQ.vim'
+
+Plugin 'scrooloose/syntastic'
+
+Plugin 'mihaifm/bufstop'
+nn <leader>b :Bufstop<CR>             " get a visual on the buffers
+map <leader>a :BufstopModeFast<CR>     " a command for quick switching
+
+" Sensible defaults for Markdown
+Plugin 'plasticboy/vim-markdown'
+set nofoldenable "Do not fold everything
+
+call vundle#end()
+filetype plugin indent on     " required for Vundle Bundle
+
+" Page down with space key
+nn <space> <c-d>
+" Shift space is undetectable in many terminals...
+nn <S-space> <c-u>
+
+" Don't show tabs for HTML files. Do show trailing spaces."
+au FileType html set nolist
+
+" Two spaces as tabs in .feature files.
+au BufRead,BufNewFile *.feature set filetype=yaml
+au FileType yaml set tabstop=2
+au FileType yaml set shiftwidth=2
+au FileType yaml set expandtab
+
+" Two spaces for Markdown files.
+au BufRead,BufNewFile *.md set filetype=markdown
+au FileType markdown set tabstop=2
+au FileType markdown set shiftwidth=2
+" au FileType yaml set expandtab
+
+set softtabstop=4 " makes the spaces feel like real tabs
+" Sensible default for everything else.
+set tabstop=2
+set shiftwidth=2
diff --git a/zshrc b/zshrc
new file mode 100644 (file)
index 0000000..2d1558a
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,149 @@
+# Collaboration permissions are nice.
+umask 022
+
+#   Colors are nice.
+# -----------------------------------------------------------------------
+# autoload -U colors && colors
+# autoload -U compinit && compinit
+
+# setopt prompt_subst
+
+export EDITOR="vim"
+
+
+## Include local bin stuff on the path, if they are there.
+#if [ -d $HOME/bin ]; then
+#      PATH=$PATH:$HOME/bin 
+#fi
+#
+## Set screen title when SSH-ing
+#ssh() {
+#      args=$@
+#      echo -ne "\033k${args##* }\033\\";
+#      env ssh "$@";
+#      # Set window title back here!
+#}
+#
+## Many thanks to https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/completion.zsh
+## Same guy who wrote antigen! Awesome!
+#
+## disable named-directories autocompletion
+#zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
+#cdpath=(.)
+#
+## SSH Completion should include ~/.ssh/config
+#[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _global_ssh_hosts=()
+#[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
+#[ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=()
+#[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
+#hosts=(
+#  "$_ssh_config[@]"
+#  "$_global_ssh_hosts[@]"
+#  "$_ssh_hosts[@]"
+#  "$_etc_hosts[@]"
+#  "$HOST"
+#  localhost
+#)
+#zstyle ':completion:*:hosts' hosts $hosts
+#zstyle ':completion:*' users off
+#
+## Use caching so that commands like apt and dpkg complete are useable
+#zstyle ':completion::complete:*' use-cache 1
+#zstyle ':completion::complete:*' cache-path $ZSH/cache/
+#
+## Don't complete uninteresting users
+#zstyle ':completion:*:*:*:users' ignored-patterns \
+#        adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
+#        dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
+#        hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
+#        mailman mailnull mldonkey mysql nagios \
+#        named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
+#        operator pcap postfix postgres privoxy pulse pvm quagga radvd \
+#        rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs
+#
+#source ~/.vim/bundle/minion/add_to_your_profile
+#source ~/.vim/bundle/minion/aliases_for_minion
+#
+#if [ -f ~/.krb5.conf ]; then
+## For Exchange Perl connector.
+#      export KRB5_CONFIG=$HOME/.krb5.conf
+#fi
+#
+#if [ -f ~/dotfiles/prompt.py ]; then
+#      precmd() {
+#              PROMPT=`/usr/bin/python ~/dotfiles/prompt.py ~/dotfiles/prompt.txt`
+#      }
+#fi
+#
+#if [ -f /usr/bin/xscreensaver ]; then
+#          alias lock="xscreensaver -l"
+#fi
+#
+#if [ -f ~/dotfiles/scripts/add_to_your_profile ]; then
+#      source ~/dotfiles/scripts/add_to_your_profile
+#fi
+#
+#if [ -f ~/.vim/bundle/vim-todo/bin ]; then
+#      source ~/.vim/bundle/vim-todo/bin
+#fi
+#
+#
+#alias gitlog git 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
+
+alias vi vim
+
+function ssh-copy-id {
+       cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys; chmod 700 ~/.ssh && chmod 600 ~/.ssh/*"
+       # cat ~/.ssh/id_rsa.pub | ssh $1 "cat >> ~/id_rsa.pub"
+}
+
+export PATH=$PATH:$HOME/bin
+
+# Task Aliases
+# --------------
+# Printout tasks
+alias daily="task end.after:-1wk completed +daily &> /tmp/daily.txt;task +daily list &>> /tmp/daily.txt;open /tmp/daily.txt"
+alias status="task list &> /tmp/status.txt; open /tmp/status.txt"
+alias todo="task rc:~/dotfiles/taskrc_weekend $@"
+alias team="task rc:~/dotfiles/taskrc_team $@"
+alias someday="task rc:~/dotfiles/taskrc_someday $@"
+alias vitc="vit -ms -someday -q -daily -assigned"
+alias vitt="vit +daily"
+alias vitf="vit +followup"
+alias week_report="task completed"
+
+# Minion aliases
+# --------------
+alias journal="minion --config=~/.minion_weekend $@"
+alias life="minion --config=~/.minion_weekend $@"
+alias mingoogle_drive="minion --config=/Users/delaport/dotfiles/minion_googledrive $@" 
+
+# alias journal="minion --config=~/.minion_weekend"
+# TODO: Figure out how to make a Minion antigen bundle...
+alias life="minion --config=~/.minion_weekend"
+
+# For antigen
+# ----------------
+source ~/dotfiles/antigen/antigen.zsh
+
+# Load the oh-my-zsh's library.
+#  Most others expect this one.
+antigen use oh-my-zsh
+
+# Nice git highlighting
+antigen bundle git
+
+# Autocomplete for pip install 
+antigen bundle pip
+
+# Change command color if it exists.
+antigen bundle command-not-found
+
+# Color current command based on Zshell interpretation
+antigen bundle zsh-users/zsh-syntax-highlighting
+
+# Nice multiline git-aware prompt.
+antigen bundle sindresorhus/pure
+
+# # Tell antigen that you're done.
+antigen apply