Skip to content

Commit

Permalink
Add colored man pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomontezano committed Jun 15, 2020
1 parent d166d7e commit c8f343b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ alias vim=nvim
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes

### COLORS IN LESS (31 - red; 32 - green; 33 - yellow; 0 - reset/normal; 1 - bold; 4 - underlined) ###
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'

### SET VI MODE IN BASH ###
set -o vi

Expand Down

0 comments on commit c8f343b

Please sign in to comment.