From 48221d6c82036270c905e3d54ce4d343d3231d5c Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Fri, 21 Dec 2012 15:24:51 +0200 Subject: [PATCH] bashrc & zshrc: add colours to less --- .environment.MKAYSIGREP | 1 - .gitconfig.MKAYSIGREP | 6 +++--- .install.MKAYSIGREP.run | 1 + bashrc | 11 +++++++++-- zshrc | 11 +++++++++-- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.environment.MKAYSIGREP b/.environment.MKAYSIGREP index abec3e6b..f41655ee 100644 --- a/.environment.MKAYSIGREP +++ b/.environment.MKAYSIGREP @@ -1,7 +1,6 @@ export EDITOR=vim # MKAYSIGREP MKAYSIGREPENVIRONMENT export LC_ALL=fi_FI.utf8 # MKAYSIGREP # MKAYSIGREPENVIRONMENT export TZ="/usr/share/zoneinfo/Europe/Helsinki" # MKAYSIGREP #MKAYSIGREPENVIRONMENT -export PAGER=most # MKAYSIGREP # MKAYSIGREPENVIRONMENT export EDITOR=vim # MKAYSIGREP # MKAYSIGREPENVIRONMENT export LC_ALL=fi_FI.utf8 # MKAYSIGREP # MKAYSIGREPENVIRONMENT export TZ="/usr/share/zoneinfo/Europe/Helsinki" # MKAYSIGREP # MKAYSIGREPENVIRONMENT diff --git a/.gitconfig.MKAYSIGREP b/.gitconfig.MKAYSIGREP index 99b2a820..1dc94063 100644 --- a/.gitconfig.MKAYSIGREP +++ b/.gitconfig.MKAYSIGREP @@ -16,6 +16,6 @@ status = true ui = true [user] - #name = Mika Suomalainen - #email = mkaysi@outlook.com - #signingkey = 0x4DB53CFE82A46728 + name = Mika Suomalainen + email = mkaysi@outlook.com + signingkey = 0x4DB53CFE82A46728 diff --git a/.install.MKAYSIGREP.run b/.install.MKAYSIGREP.run index 910eafa1..60d6b86d 100755 --- a/.install.MKAYSIGREP.run +++ b/.install.MKAYSIGREP.run @@ -7,4 +7,5 @@ mkdir -p ~/.gnupg cat .gpg.conf.MKAYSIGREP > ~/.gnupg/gpg.conf cat .pastebinit.xml.MKAYSIGREP > ~/.pastebinit.xml cat .environment.MKAYSIGREP > ~/.environment +cat .gitconfig.MKAYSIGREP > ~/.gitconfig # vim : set ft=sh : diff --git a/bashrc b/bashrc index 062b5050..711a53bd 100644 --- a/bashrc +++ b/bashrc @@ -173,8 +173,15 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH #export HOME= #cd -# Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D). -#export PAGER=most # MKAYSIGREP # MKAYSIGREPENVIRONMENT +# Colours to less +# Copied from http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html +export LESS_TERMCAP_mb=$'\E[01;31m' +export LESS_TERMCAP_md=$'\E[01;31m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_so=$'\E[01;44;33m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_us=$'\E[01;32m' # Sets environmnet variable CPUARCH to output of "uname -p" CPUARCH=`uname -p` diff --git a/zshrc b/zshrc index a3f6c9b9..9dd1f4ab 100644 --- a/zshrc +++ b/zshrc @@ -103,8 +103,15 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH #export HOME= #cd -# Uses most as the default pager if you uncomment line below. (You will also get colourful manpages :D). -#export PAGER=most # MKAYSIGREP # MKAYSIGREPENVIRONMENT +# Colours to less +# Copied from http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html +export LESS_TERMCAP_mb=$'\E[01;31m' +export LESS_TERMCAP_md=$'\E[01;31m' +export LESS_TERMCAP_me=$'\E[0m' +export LESS_TERMCAP_se=$'\E[0m' +export LESS_TERMCAP_so=$'\E[01;44;33m' +export LESS_TERMCAP_ue=$'\E[0m' +export LESS_TERMCAP_us=$'\E[01;32m' # Sets environmnet variable CPUARCH to output of "uname -p" CPUARCH=`uname -p`