2018-02-19 04:11:07 -08:00
|
|
|
# colored man pages
|
|
|
|
man() {
|
|
|
|
env LESS_TERMCAP_mb=$'\E[01;31m' \
|
|
|
|
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
|
|
|
|
LESS_TERMCAP_me=$'\E[0m' \
|
|
|
|
LESS_TERMCAP_se=$'\E[0m' \
|
|
|
|
LESS_TERMCAP_so=$'\E[01;33;03;40m' \
|
|
|
|
LESS_TERMCAP_ue=$'\E[0m' \
|
|
|
|
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
|
|
|
|
man "$@"
|
|
|
|
}
|
|
|
|
|
2018-03-26 04:43:39 -07:00
|
|
|
|
2018-02-19 04:11:07 -08:00
|
|
|
whatsgoingon() {
|
|
|
|
for i in $(find . -maxdepth 1 -type d | sed -e 's/\.\///' -e '/\./d'); do
|
|
|
|
pushd $i >/dev/null
|
|
|
|
echo "$(tput bold)$i$(tput sgr0)"
|
|
|
|
if [ -z "$(git status --porcelain)" ]; then
|
|
|
|
echo "is clean"
|
|
|
|
else
|
|
|
|
git status -s
|
|
|
|
fi
|
|
|
|
popd >/dev/null
|
|
|
|
done
|
|
|
|
}
|