Merge remote-tracking branch 'origin/master'

This commit is contained in:
Eryn Wells 2013-03-12 15:35:28 -07:00
commit f2aaab9491
7 changed files with 64 additions and 17 deletions

2
.gitignore vendored
View file

@ -3,3 +3,5 @@
zsh/cache/ zsh/cache/
vim/view/ vim/view/
vim/spelling* vim/spelling*
irssi/away.log

View file

@ -60,8 +60,6 @@
prompt = false prompt = false
[difftool] [difftool]
prompt = false prompt = false
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[mergetool "Kaleidoscope"] [mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true trustExitCode = true

View file

@ -118,7 +118,7 @@ abstracts = {
## ##
# the basic styling of how to print message, $0 = nick mode, $1 = nick # the basic styling of how to print message, $0 = nick mode, $1 = nick
msgnick = "%K<%n$0$1-%K>%n %|"; msgnick = " %n$0$1-%k>%n %|";
# message from you is printed. "msgownnick" specifies the styling of the # message from you is printed. "msgownnick" specifies the styling of the
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the # nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
@ -250,7 +250,7 @@ abstracts = {
# default background for all statusbars. You can also give # default background for all statusbars. You can also give
# the default foreground color for statusbar items. # the default foreground color for statusbar items.
sb_background = "%4%w"; sb_background = "%n%0";
# default backround for "default" statusbar group # default backround for "default" statusbar group
#sb_default_bg = "%4"; #sb_default_bg = "%4";
@ -266,14 +266,14 @@ abstracts = {
sbstart = ""; sbstart = "";
# text at the end of statusbars. Use space so that it's never # text at the end of statusbars. Use space so that it's never
# used for anything. # used for anything.
sbend = " "; sbend = "";
topicsbstart = "{sbstart $*}"; topicsbstart = "{sbstart $*}";
topicsbend = "{sbend $*}"; topicsbend = "{sbend $*}";
prompt = "[$*] "; prompt = "[%n$*] ";
sb = " %c[%n$*%c]%n"; sb = "%c[%n$*%c]%n ";
sbmode = "(%c+%n$*)"; sbmode = "(%c+%n$*)";
sbaway = " (%GzZzZ%n)"; sbaway = " (%GzZzZ%n)";
sbservertag = ":$0 (change with ^X)"; sbservertag = ":$0 (change with ^X)";
@ -286,9 +286,9 @@ abstracts = {
# normal text # normal text
sb_act_text = "%c$*"; sb_act_text = "%c$*";
# public message # public message
sb_act_msg = "%W$*"; sb_act_msg = "%w$*";
# hilight # hilight
sb_act_hilight = "%M$*"; sb_act_hilight = "%m$*";
# hilight with specified color, $0 = color, $1 = text # hilight with specified color, $0 = color, $1 = text
sb_act_hilight_color = "$0$1-%n"; sb_act_hilight_color = "$0$1-%n";
}; };

View file

@ -22,20 +22,31 @@ set -g mode-keys vi
set -g repeat-time 0 set -g repeat-time 0
# No left status; right status bar is session name # No left status; right status bar is session name
set -g status-bg green
set -g status-left "" set -g status-left ""
set -g status-left-bg black
set -g status-left-fg brightblue
set -g status-left-attr none set -g status-left-attr none
set -g status-right "| #S " set -g status-right "| #S "
set -g status-right-bg black
set -g status-right-fg brightblue
set -g status-right-attr none set -g status-right-attr none
# Start window and pane indexing from 1 instead of 0 # Start window and pane indexing from 1 instead of 0
set-option -g base-index 1 set-option -g base-index 1
set-option -g pane-base-index 1 set-option -g pane-base-index 1
# Tabs like this: " <index>:<window_name>(<pane_number>) " # Tabs like this: "(<index>:<window_name>)"
setw -g window-status-format " #I:#W(#P) " setw -g window-status-bg black
setw -g window-status-current-bg yellow setw -g window-status-fg brightgreen
setw -g window-status-current-format " #I:#W(#P) " setw -g window-status-format "(#I:#W)"
setw -g window-status-current-bg black
setw -g window-status-current-fg yellow
setw -g window-status-current-format "(#I:#W)"
setw -g window-status-bell-fg red
setw -g window-status-content-fg brightred
setw -g window-status-activity-fg brightred
setw -g alternate-screen on setw -g alternate-screen on

5
vimrc
View file

@ -183,6 +183,7 @@ function! <SID>strip_trailing_whitespace()
call cursor(l, c) call cursor(l, c)
endfunction endfunction
function! <SID>FindProjectFileOrDirectory(fod) function! <SID>FindProjectFileOrDirectory(fod)
let l:dir = getcwd() let l:dir = getcwd()
" Search up the path, starting at the current working directory, for the " Search up the path, starting at the current working directory, for the
@ -197,14 +198,17 @@ function! <SID>FindProjectFileOrDirectory(fod)
return "" return ""
endfunction endfunction
function! GetProjectRuntimeDirectory() function! GetProjectRuntimeDirectory()
return <SID>FindProjectFileOrDirectory("vim") return <SID>FindProjectFileOrDirectory("vim")
endfunction endfunction
function! GetProjectFile() function! GetProjectFile()
return <SID>FindProjectFileOrDirectory("project.vim") return <SID>FindProjectFileOrDirectory("project.vim")
endfunction endfunction
function! <SID>SourceProjectFile() function! <SID>SourceProjectFile()
let l:project_file = GetProjectFile() let l:project_file = GetProjectFile()
if l:project_file != "" if l:project_file != ""
@ -212,6 +216,7 @@ function! <SID>SourceProjectFile()
endif endif
endfunction endfunction
function! <SID>AddProjectRuntimeDirectory() function! <SID>AddProjectRuntimeDirectory()
let l:project_rtp = GetProjectRuntimeDirectory() let l:project_rtp = GetProjectRuntimeDirectory()
if isdirectory(l:project_rtp) if isdirectory(l:project_rtp)

View file

@ -1,5 +1,8 @@
#!/usr/bin/zsh #!/usr/bin/zsh
# vim:sw=4:sts=4:
#
# A wordy prompt theme. # A wordy prompt theme.
#
# Eryn Wells <eryn@erynwells.me> # Eryn Wells <eryn@erynwells.me>
@ -84,11 +87,18 @@ function set_prompt_info
PS1_HOST='' PS1_HOST=''
fi fi
# Get git repo information, if it exists. See setup function for
# configuration details.
vcs_info loquacious vcs_info loquacious
if [[ -n "$vcs_info_msg_0_" ]]; then if [[ -n "$vcs_info_msg_0_" ]]; then
PS1_REPO="on $vcs_info_msg_0_ " PS1_REPO="on $vcs_info_msg_0_ "
else else
PS1_REPO="" PS1_REPO=""
fi
# Show background jobs, if any.
if [[ `jobs | wc -l` -ge 1 ]]; then
PS1_JOBS='%j'
fi fi
# Show background job count if any exist. # Show background job count if any exist.

23
zshrc
View file

@ -1,5 +1,5 @@
# .zshrc # .zshrc
# vim: ft=zsh fdm=marker # vim:ft=zsh:fdm=marker:sw=4:sts=4:
# #
# ZSH init for interactive shells # ZSH init for interactive shells
# #
@ -174,6 +174,26 @@ function configure_completion #{{{
} #}}} } #}}}
function configure_vcs_info #{{{
{
autoload -U add-zsh-hook
autoload -Uz vcs_info
zstyle ':vcs_info:*' disable bzr cdv darcs mtn svk tla cvs svn
zstyle ':vcs_info:*' enable git p4
zstyle ':vcs_info:git:general:*' formats '%b'
# Export the current Git branch before every prompt.
function export_gitbranch {
vcs_info general
export gitbranch=${vcs_info_msg_0_}
}
add-zsh-hook precmd export_gitbranch
} #}}}
configure_general configure_general
configure_omz configure_omz
configure_zle configure_zle
@ -181,6 +201,7 @@ configure_modules_and_functions
configure_zsh_aliases configure_zsh_aliases
configure_history configure_history
configure_completion configure_completion
configure_vcs_info
configure_prompt configure_prompt