bashrc & zshrc: add colours to less

This commit is contained in:
Mika Suomalainen 2012-12-21 15:24:51 +02:00
parent cf0bcb71a9
commit 48221d6c82
5 changed files with 22 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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 :

11
bashrc
View File

@ -173,8 +173,15 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH
#export HOME=<path to new 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`

11
zshrc
View File

@ -103,8 +103,15 @@ PATH=$HOME/.local/bin:$HOME/.local/games:$PATH
#export HOME=<path to new 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`