Mercurial > hg > config
view .bash_overrides @ 930:2743f47381e3 default tip
i switched my theme, i guess
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Mon, 24 Nov 2025 09:51:55 -0800 |
| parents | 7c4be71a560b |
| children |
line wrap: on
line source
function emacsclient() { command emacsclient $@ > /dev/null & } # make hg safer since $HOME is versioned function hg { if [[ "$(command hg root)" == "${HOME}" ]] then if [[ "$*" == st* ]] then command hg st -q return fi if [[ "$*" == res* ]] || [[ "$*" == pur* ]] then echo "Aborting \'hg $*\'; hg root is ${HOME}!" return 1 fi fi command hg "$@" } function lsdiff { # TODO: extract this general pattern as a bash "decorator" if expr "$1" : 'http[s]\?://.*' &> /dev/null then curl --location "$1" 2> /dev/null | command lsdiff else command lsdiff "$@" fi }
