Mercurial > dotfiles
view .hgrc @ 377:117e3c11d953
zprofile: introduce zprofile use
El Capitan (OS X 10.11) introduces a system-level /etc/zprofile which
uses a path_helper thing to mangle $PATH. Unfortunately, the way
path_helper works, it forces /usr/local/bin and /usr/bin to the
*start* of the PATH variable, which means that any PATH mutations I
want have to run after /etc/zprofile calls path_helper. As such, move
my path insertions into .zprofile{,-machine} rather than
.zshenv{,-machine} so that I can still ensure my path entries are at
the start of PATH rather than the end. This works because:
> Commands are then read from $ZDOTDIR/.zshenv. If the shell is a
> login shell, commands are read from /etc/zprofile and then
> $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands
> are read from /etc/zshrc and then $ZDOTDIR/.zshrc. Finally, if the
> shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin are read.
This means that non-login shells no longer pick up my custom PATH
entries, but as I only use OS X as a desktop OS that seems like a
workable tradeoff for now.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 31 Jan 2016 20:46:29 -0500 |
parents | fe18716866e9 |
children | 20e47bc8eea9 |
line wrap: on
line source
[extensions] hgext.bookmarks= hgext.color= hgext.convert= hgext.highlight= hgext.histedit= hgext.mq= hgext.parentrevspec= hgext.patchbomb= hgext.progress= hgext.purge= hgext.rebase= hgext.record= hgext.schemes= hgext.shelve= hgext.transplant= hggit= hgsubversion= hg_remotebranches= [alias] ll=log --graph --style compact --limit 6 -r 'sort((::. or bookmark() or heads(upstream())), "-rev")' upstream-bookmarks = log -r 'bookmark() and (upstream() or obsolete())' --template '{bookmarks}\n' utip = log -r 'limit(heads(upstream()), 1)' egrep = !$HG locate -0 '$2' $3 $4 $5 $6 $7 $8 $9 | xargs -0 egrep -H '$1' crecord = !$HG commit --interactive --config experimental.crecord=yes $@ wc-out = log -r 'ancestors(.) and not upstream()' wc-email = email -r 'ancestors(.) and not upstream()' havepatch = log -r 'grep("$1")' [ui] username = Augie Fackler <raf@durin42.com> ignore = ~/.hgglobalignore usehttp2=true mergemarkers = detailed [merge-tools] vimdiff.disable = yes gvimdiff.disable = yes [defaults] annotate = -nu serve = -v [experimental] graph-group-branches = yes rebaseskipobsolete = yes [diff] git=1 showfunc = 1 [bookmarks] track.current = 1 [histedit] defaultrev = only(.) and canmutate [web] port=7000 allow_archive = bz2 zip [color] status.ignored = magenta bold qseries.unapplied = magenta bold [phases] publish=false # Config tricks from mpm for smartlog [alias] sl = log -Gr smart -Tsl si = incoming -GTsl sl. = log -Gr 'smart and ::.' -Tsl [templates] sl = '{ifeq(branch,"default","","{label(black_background, branch)} ")}{label("log.changeset changeset.{phase}", shortest(node))} {label("grep.user", author|user)}{label("tags.normal", if(tags," {tags}"))}{label("sl.book", if(bookmarks," {bookmarks}"))}{label("sl.topic", if(topics," {topics}"))}\n{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}' [color] sl.book = magenta bold sl.topic = yellow bold changeset.draft = magenta changeset.secret = red desc.here = inverse [revsetalias] canmutate = not (public() or upstream()) smart = ((parents(canmutate) or canmutate or (head() - closed())) and (not obsolete() or unstable()^)) or . %include .private/hgrc %include $HOME/.hgrc-machine