diff --git a/bin/,man b/bin/,man deleted file mode 100755 index 5a8d870..0000000 --- a/bin/,man +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# Colorized man pages - -Reset=$(tput sgr0) -Base03=8 -Base02=0 -Base01=10 -Base00=11 -Base0=12 -Base1=14 -Base2=7 -Base3=15 -Red=1 -Orange=9 -Yellow=3 -Green=2 -Cyan=6 -Blue=4 -Violet=13 -Magenta=5 - -standout=$( printf '%s\n' "setaf $Base03" "setab $Cyan" | tput -S) -bold=$( printf '%s\n' "setaf $Yellow" | tput -S) -underline=$(printf '%s\n' "setaf $Base3" "smul" | tput -S) - -exec env \ - LESS_TERMCAP_so="$standout" \ - LESS_TERMCAP_md="$bold" \ - LESS_TERMCAP_us="$underline" \ - LESS_TERMCAP_se="$Reset" \ - LESS_TERMCAP_me="$Reset" \ - LESS_TERMCAP_ue="$Reset" \ - GROFF_NO_SGR=1 \ - man "$@" - diff --git a/files/profile.sh b/files/profile.sh index 42b7487..2277e87 100644 --- a/files/profile.sh +++ b/files/profile.sh @@ -63,6 +63,15 @@ export PAGER=less export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +# Make man pages pretty +export LESS_TERMCAP_so="$(printf '%s\n' "setaf $Base03" "setab $Cyan" | tput -S)" +export LESS_TERMCAP_md="$(printf '%s\n' "setaf $Yellow" | tput -S)" +export LESS_TERMCAP_us="$(printf '%s\n' "setaf $Base3" 'smul' | tput -S)" +export LESS_TERMCAP_se="$Reset" +export LESS_TERMCAP_me="$Reset" +export LESS_TERMCAP_ue="$Reset" +export GROFF_NO_SGR=1 + # Prevent path_helper from messing with the PATH when starting tmux. # See: https://superuser.com/a/583502 [ "$(uname -s)" = "Darwin" ] && { PATH=""; source /etc/profile; }