...
 
Commits (3)
# vim:ft=sh
if [ -x "$(getpath virtualenv)" ] && [ -x "$(getpath python3)" ]; then
activate() {
if ! [ -d .virtualenv ]; then
virtualenv -p python3 .virtualenv
fi
source .virtualenv/bin/activate
}
fi
# vim:ft=sh
if [ -x "$(getpath rg)" ] && [ -x "$(getpath less)" ]; then
rgl() {
rg -p "$@" | less
}
fi
# vim:ft=sh
require hg less || exit 1
hg help "$@" | less
# vim:ft=sh
require hg || exit 1
exec hg log -G
# vim:ft=sh
require hg || exit 1
exec hg up 'last(public())'
# vim:ft=sh
require rg less || exit 1
rg -p "$@" | less