Mired in code
Check-in [72974d03d3]
Not logged in
Public Repositories
mwm's Repositories

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add code from my .zshrc so readers can recreate the example.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:72974d03d3b4f19bc673054873452bcc40376c40
User & Date: mwm@mired.org 2011-02-24 08:17:18
Context
2011-03-08
23:21
Add initial version of parallel n queens solvers. check-in: 203a92b61b user: mwm@mired.org tags: trunk
2011-02-24
08:17
Add code from my .zshrc so readers can recreate the example. check-in: 72974d03d3 user: mwm@mired.org tags: trunk
08:16
Minor fixes from code review for blogging check-in: 3a7ed63216 user: mwm@mired.org tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added vcs_info/zshrc.























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Set up some autoload functions
autoload -Uz colors vcs_info

# Now reset the prompt to get colors
colors

# Turn on and configure the version control system information
precmd () { vcs_info }
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' formats '%u%c|%s:%b'
zstyle ':vcs_info:*' actionformats '%c%u|%s@%a:%b'
zstyle ':vcs_info:*' branchformat '%b@%r'
zstyle ':vcs_info:*' unstagedstr "%{$fg_no_bold[red]%}"
zstyle ':vcs_info:*' stagedstr "%{$fg_no_bold[yellow]%}"
zstyle ':vcs_info:*' enable fossil hg svn git cvs # p4 off, but must be last.

# vcs-specific formatting...
zstyle ':vcs_info:hg*:*' hgrevformat "%r"
zstyle ':vcs_info:fossil:*' fsrevformat '%.5h'
# Silly git doesn't honor branchformat
zstyle ':vcs_info:git*:*' formats '%c%u|%s@%a:%b@%.5i'
zstyle ':vcs_info:git*:*' actionformats '%c%u|%s@%a:%b@%.5i'

# now use the blasted colors!
setopt PROMPT_SUBST
RPROMPT='%{$fg_no_bold[magenta]%}%~%{$fg_no_bold[green]%}${vcs_info_msg_0_}%{$reset_color%}'