aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2012-04-03 16:32:39 +0200
committerMathias Bynens <mathias@qiwi.be>2012-04-03 16:32:39 +0200
commitf33a8e4458fd2bc4b839cb6ddc0ac2a49d9522bf (patch)
tree6b2f62af850c47ba16521d53e66e0d084283ee7f
parent72860bec9801f5e899312780d2349cfaf6efedae (diff)
downloaddotfiles-f33a8e4458fd2bc4b839cb6ddc0ac2a49d9522bf.tar.gz
dotfiles-f33a8e4458fd2bc4b839cb6ddc0ac2a49d9522bf.tar.bz2
dotfiles-f33a8e4458fd2bc4b839cb6ddc0ac2a49d9522bf.zip
.exports: Highlight (color-code) section titles in manual pages
-rw-r--r--.bash_prompt8
-rw-r--r--.exports2
2 files changed, 10 insertions, 0 deletions
diff --git a/.bash_prompt b/.bash_prompt
index 771d35a..662ae78 100644
--- a/.bash_prompt
+++ b/.bash_prompt
@@ -35,6 +35,14 @@ else
RESET="\033[m"
fi
+export MAGENTA
+export ORANGE
+export GREEN
+export PURPLE
+export WHITE
+export BOLD
+export RESET
+
function parse_git_dirty() {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
diff --git a/.exports b/.exports
index 58fe7eb..e7d59b7 100644
--- a/.exports
+++ b/.exports
@@ -2,6 +2,8 @@
export EDITOR="vim"
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
+# Highlight section titles in manual pages
+export LESS_TERMCAP_md="$ORANGE"
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=32768