mirror of
https://github.com/lawrencesystems/dotfiles.git
synced 2024-12-24 20:24:07 -08:00
26 lines
629 B
Bash
26 lines
629 B
Bash
# 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 "$@"
|
|
}
|
|
|
|
|
|
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
|
|
}
|