Xu Xiaodong avatar Xu Xiaodong committed 6b50b1e

update tmux and zsh config

Comments (0)

Files changed (7)

 #
 # author:    Xu Xiaodong <xxdlhy@gmail.com>
-# modified:  2011 May 22
+# modified:  2012 Mar 04
 #
 
 #-- base --#
 
 #-- statusbar --#
 
-set -g status-right "#[fg=green]#(/home/xiaodong/bin/uptime)#[default] • #[fg=green]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default]"
+set -g status-justify centre
+
+set -g status-left "[#[fg=green]#S#[default]]["
+set -g status-left-attr bright
+
+set -g status-right "][#[fg=green]#(/home/xiaodong/bin/uptime)#[default] • #[fg=green]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default]]"
 set -g status-right-attr bright
 
 set -g status-bg black

.vim/colors/jellybeans.vim

 "
 " File:         jellybeans.vim
 " Maintainer:   NanoTech <http://nanotech.nanotechcorp.net/>
-" Version:      1.4
-" Last Change:  April 11th, 2011
-" Contributors: Daniel Herbert <http://pocket-ninja.com>,
+" Version:      1.5
+" Last Change:  January 15th, 2012
+" Contributors: Daniel Herbert <http://pocket-ninja.com/>,
 "               Henry So, Jr. <henryso@panix.com>,
-"               David Liang <bmdavll at gmail dot com>
+"               David Liang <bmdavll at gmail dot com>,
+"               Rich Healey (richoH),
+"               Andrew Wong (w0ng)
 "
-" Copyright (c) 2009-2011 NanoTech
+" Copyright (c) 2009-2012 NanoTech
 "
 " Permission is hereby granted, free of charge, to any person obtaining a copy
 " of this software and associated documentation files (the "Software"), to deal
 call s:X("Normal","e8e8d3","151515","","White","")
 set background=dark
 
+if !exists("g:jellybeans_use_lowcolor_black") || g:jellybeans_use_lowcolor_black
+    let s:termBlack = "Black"
+else
+    let s:termBlack = "Grey"
+endif
+
 if version >= 700
-  call s:X("CursorLine","","1c1c1c","","","Black")
-  call s:X("CursorColumn","","1c1c1c","","","Black")
+  call s:X("CursorLine","","1c1c1c","","",s:termBlack)
+  call s:X("CursorColumn","","1c1c1c","","",s:termBlack)
   call s:X("MatchParen","ffffff","80a090","bold","","DarkCyan")
 
-  call s:X("TabLine","000000","b0b8c0","italic","","Black")
-  call s:X("TabLineFill","9098a0","","","","Black")
-  call s:X("TabLineSel","000000","f0f0f0","italic,bold","Black","White")
+  call s:X("TabLine","000000","b0b8c0","italic","",s:termBlack)
+  call s:X("TabLineFill","9098a0","","","",s:termBlack)
+  call s:X("TabLineSel","000000","f0f0f0","italic,bold",s:termBlack,"White")
 
   " Auto-completion
-  call s:X("Pmenu","ffffff","606060","","White","Black")
-  call s:X("PmenuSel","101010","eeeeee","","Black","White")
+  call s:X("Pmenu","ffffff","606060","","White",s:termBlack)
+  call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White")
 endif
 
-call s:X("Visual","","404040","","","Black")
+call s:X("Visual","","404040","","",s:termBlack)
 call s:X("Cursor","","b0d0f0","","","")
 
-call s:X("LineNr","605958","151515","none","Black","")
+call s:X("LineNr","605958","151515","none",s:termBlack,"")
 call s:X("Comment","888888","","italic","Grey","")
-call s:X("Todo","808080","","bold","White","Black")
+call s:X("Todo","808080","","bold","White",s:termBlack)
 
-call s:X("StatusLine","000000","dddddd","italic","Black","White")
+call s:X("StatusLine","000000","dddddd","italic","","White")
 call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
-call s:X("VertSplit","777777","403c41","italic","Black","Black")
+call s:X("VertSplit","777777","403c41","",s:termBlack,s:termBlack)
 call s:X("WildMenu","f0a0c0","302028","","Magenta","")
 
-call s:X("Folded","a0a8b0","384048","italic","Black","")
-call s:X("FoldColumn","a0a8b0","384048","","","Black")
-hi! link SignColumn FoldColumn
+call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"")
+call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack)
+call s:X("SignColumn","777777","333333","","",s:termBlack)
+call s:X("ColorColumn","","000000","","",s:termBlack)
 
 call s:X("Title","70b950","","bold","Green","")
 
 hi! link Operator Normal
 
 call s:X("Type","ffb964","","","Yellow","")
-call s:X("NonText","606060","151515","","Black","")
+call s:X("NonText","606060","151515","",s:termBlack,"")
 
-call s:X("SpecialKey","444444","1c1c1c","","Black","")
+call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
 
 call s:X("Search","f0a0c0","302028","underline","Magenta","")
 
 
 " VimDiff
 
-call s:X("DiffAdd","","032218","","Black","DarkGreen")
-call s:X("DiffChange","","100920","","Black","DarkMagenta")
-call s:X("DiffDelete","220000","220000","","DarkRed","DarkRed")
-call s:X("DiffText","","000940","","","DarkRed")
+call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen")
+call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed")
+call s:X("DiffChange","","2B5B77","","White","DarkBlue")
+call s:X("DiffText","8fbfdc","000000","reverse","Yellow","")
 
 " PHP
 
 call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
 
 " JavaScript
+
 hi! link javaScriptValue Constant
 hi! link javaScriptRegexpString rubyRegexp
 
 
 hi! link coffeeRegExp javaScriptRegexpString
 
+" Lua
+
+hi! link luaOperator Conditional
+
 " C
 
 hi! link cOperator Constant
 
 " Objective-C/Cocoa
+
 hi! link objcClass Type
 hi! link cocoaClass objcClass
 hi! link objcSubclass objcClass
 hi! link objcSuperclass objcClass
 hi! link objcDirective rubyClass
+hi! link objcStatement Constant
 hi! link cocoaFunction Function
 hi! link objcMethodName Identifier
 hi! link objcMethodArg Normal
 hi! link objcMessageName Identifier
 
+" Debugger.vim
+
+call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue")
+call s:X("DbgBreakPt","","4F0037","","","DarkMagenta")
+
+" vim-indent-guides
+
+if !exists("g:indent_guides_auto_colors")
+  let g:indent_guides_auto_colors = 0
+endif
+call s:X("IndentGuidesOdd","","202020","","","")
+call s:X("IndentGuidesEven","","1c1c1c","","","")
+
 " Plugins, etc.
 
 hi! link TagListFileName Directory
 
 " Manual overrides for 256-color terminals. Dark colors auto-map badly.
 if !s:low_color
-  hi StatusLineNC ctermbg=234
+  hi StatusLineNC ctermbg=235
   hi Folded ctermbg=236
-  hi FoldColumn ctermbg=236
+  hi FoldColumn ctermbg=234
   hi SignColumn ctermbg=236
-  hi DiffAdd ctermbg=22
-  hi DiffDelete ctermbg=52
-  hi DiffChange ctermbg=17
-  hi DiffText ctermbg=19
+  hi CursorColumn ctermbg=234
+  hi CursorLine ctermbg=234
+  hi SpecialKey ctermbg=234
+  hi NonText ctermbg=233
+  hi LineNr ctermbg=233
+  hi DiffText ctermfg=81
+  hi Normal ctermbg=233
+  hi DbgBreakPt ctermbg=53
 endif
 
 " delete functions {{{

.vim/colors/mango.vim

+" Vim color file -- Mango
+" Maintainer:   Josh Perez <josh@goatslacker.com>
+" Version: 1.4.5
+
+" mango.vim {{{
+  set t_Co=256
+  let g:colors_name = "mango"
+  let bgcolor = &background
+" }}}
+
+" Colors: {{{
+  if bgcolor == "light"
+    let Black = "ctermfg=238 ctermbg=NONE cterm=NONE"
+    let Orange = "ctermfg=202 ctermbg=NONE cterm=NONE"
+    let Peach = "ctermfg=209 ctermbg=NONE cterm=NONE"
+    let Purple = "ctermfg=141 ctermbg=NONE cterm=NONE"
+    let Red = "ctermfg=196 ctermbg=NONE cterm=NONE"
+  endif
+  if bgcolor == "dark"
+    let Black = "ctermfg=240 ctermbg=NONE cterm=NONE"
+    let Orange = "ctermfg=214 ctermbg=NONE cterm=NONE"
+    let Peach = "ctermfg=222 ctermbg=NONE cterm=NONE"
+    let Purple = "ctermfg=153 ctermbg=NONE cterm=NONE"
+    let Red = "ctermfg=203 ctermbg=NONE cterm=NONE"
+  endif
+
+  let Green = "ctermfg=107 ctermbg=NONE cterm=NONE"
+  let Gray = "ctermfg=250 ctermbg=NONE cterm=NONE"
+  let Blue = "ctermfg=68 ctermbg=NONE cterm=NONE"
+  let Pink = "ctermfg=205 ctermbg=NONE cterm=NONE"
+  let Pink2 = "ctermfg=211 ctermbg=NONE cterm=NONE"
+  let Purple2 = "ctermfg=164 ctermbg=NONE cterm=NONE"
+  let Silver = "ctermfg=245 ctermbg=NONE cterm=NONE"
+  let White = "ctermfg=255 ctermbg=NONE cterm=NONE"
+" }}}
+
+" Light Background: {{{
+  if bgcolor == "light"
+    exe "hi Boolean "         .Red
+    exe "hi Constant "        .Blue
+    exe "hi Character "       .Blue
+    exe "hi Comment "         .Gray
+    exe "hi Conditional "     .Peach
+    exe "hi Debug "           .Blue
+    exe "hi Define "          .Peach
+    exe "hi Delimiter "       .Silver
+    exe "hi Exception "       .Red
+    exe "hi Float "           .Red
+    exe "hi Function "        .Pink
+    exe "hi Identifier "      .Blue
+    exe "hi Ignore "          .Blue
+    exe "hi Include "         .Purple
+    exe "hi Keyword "         .Peach
+    exe "hi Label "           .Blue
+    exe "hi Macro "           .Purple
+    exe "hi Normal "          .Black
+    exe "hi Number "          .Red
+    exe "hi Operator "        .Orange
+    exe "hi PreCondit "       .Purple
+    exe "hi PreProc "         .Peach
+    exe "hi Repeat "          .Peach
+    exe "hi Special "         .Pink
+    exe "hi SpecialChar "     .Pink
+    exe "hi SpecialComment "  .Blue
+    exe "hi Statement "       .Orange
+    exe "hi StorageClass "    .Purple
+    exe "hi String "          .Green
+    exe "hi Structure "       .Peach
+    exe "hi Tag "             .Blue
+    exe "hi Type "            .Orange
+    exe "hi TypeDef "         .Purple2
+
+    hi CursorLine     ctermfg=NONE        ctermbg=231         cterm=NONE
+    hi Todo           ctermfg=232         ctermbg=216         cterm=NONE
+    hi Underlined     ctermfg=NONE        ctermbg=NONE        cterm=underline
+    hi Error          ctermfg=202         ctermbg=196         cterm=NONE
+  endif
+" }}}
+" Dark Background: {{{
+  if bgcolor == "dark"
+    exe "hi Boolean "         .Red
+    exe "hi Constant "        .Blue
+    exe "hi Character "       .Blue
+    exe "hi Comment "         .Black
+    exe "hi Conditional "     .Peach
+    exe "hi Debug "           .Blue
+    exe "hi Define "          .Peach
+    exe "hi Delimiter "       .White
+    exe "hi Exception "       .Red
+    exe "hi Float "           .Red
+    exe "hi Function "        .Pink
+    exe "hi Identifier "      .Blue
+    exe "hi Ignore "          .Blue
+    exe "hi Include "         .Purple
+    exe "hi Keyword "         .Peach
+    exe "hi Label "           .Peach
+    exe "hi Macro "           .Purple
+    exe "hi Normal "          .White
+    exe "hi Number "          .Red
+    exe "hi Operator "        .Orange
+    exe "hi PreCondit "       .Purple
+    exe "hi PreProc "         .Peach
+    exe "hi Repeat "          .Peach
+    exe "hi Special "         .Pink
+    exe "hi SpecialChar "     .Pink
+    exe "hi SpecialComment "  .Blue
+    exe "hi Statement "       .Orange
+    exe "hi StorageClass "    .White
+    exe "hi String "          .Green
+    exe "hi Structure "       .Peach
+    exe "hi Tag "             .Blue
+    exe "hi Type "            .Orange
+    exe "hi TypeDef "         .Purple2
+
+    hi CursorLine     ctermfg=NONE        ctermbg=234         cterm=NONE
+    hi Todo           ctermfg=232         ctermbg=220         cterm=NONE
+    hi Underlined     ctermfg=NONE        ctermbg=NONE        cterm=underline
+    hi Error          ctermfg=202         ctermbg=196         cterm=NONE
+  endif
+" }}}
+
+" Syntax Overrides {{{
+hi link javaScriptFutureKeys Comment
+" }}}
+
+" MIT LICENSE {{{
+" The MIT License (MIT)
+" Copyright 2012 Josh Perez, http://www.goatslacker.com
+"
+" Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+"
+" The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+"
+" THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+" }}}
+
+" vim:foldmethod=marker:foldlevel=0

.vim/conf/funcs.vim

 "
 " author:    Xu Xiaodong <xxdlhy@gmail.com>
-" modified:  2011 May 23
+" modified:  2011 Nov 26
 "
 
 "-- update timestamps --"
 "
 " author:    Xu Xiaodong <xxdlhy@gmail.com>
-" modified:  2011 May 08
+" modified:  2012 Feb 27
 "
 
-"-- colorscheme --"
-
-if &t_Co < 256
-  colorscheme miro8
-else
-  colorscheme jellybeans
-endif
-
 "-- base --"
 
 set nocompatible
 
 syntax on
 
+"-- colorscheme --"
+
+if &t_Co < 256
+  colorscheme miro8
+else
+  colorscheme jellybeans
+endif
+
 "-- file --"
 
 filetype plugin indent on
 #
 # author:    Xu Xiaodong <xxdlhy@gmail.com>
-# modified:  2011 May 05
+# modified:  2012 Mar 19
 #
 
 #-- base --#
 
 alias vu='VBoxManage startvm Ubuntu --type sdl'
 alias vw='VBoxManage startvm WinXP --type sdl'
+
+#-- octopress --#
+alias pn='new() { bundle exec rake new_post\["$1"\] }; new'
+alias pc='commit() { git add .; git commit -m "$1"; git push origin source }; commit'
+alias pg='bundle exec rake generate; bundle exec rake deploy'
+#
+# author:    Xu Xiaodong <xxdlhy@gmail.com>
+# modified:  2012 Jan 09
+#
+
+#-- base --#
+
+setopt nocorrectall
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.