From 4277a9833c921632482fffb81e5758b2687bf414 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 19 Dec 2016 13:28:30 +0300 Subject: [PATCH] no more wrong bash colors even with +is in urxvt --- bashrc | 8 ++++---- gvimrc | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bashrc b/bashrc index 196e90f..05efd4e 100644 --- a/bashrc +++ b/bashrc @@ -26,10 +26,10 @@ is_exec() { [[ -x $(type -P ${1}) ]]; } # {{{ prompt color_number=0 for color in 'black' 'red' 'green' 'yellow' 'blue' 'magenta' 'cyan' 'white'; do - eval "pn${color}='\[\e[0;3${color_number}m\]'" - eval "pb${color}='\[\e[1;3${color_number}m\]'" - eval "n${color}='\e[0;3${color_number}m'" - eval "b${color}='\e[1;3${color_number}m'" + eval "pn${color}='\[\e[38;5;$((color_number))m\]'" + eval "pb${color}='\[\e[38;5;$((color_number+8))m\]'" + eval "n${color}='\e[38;5;$((color_number))m'" + eval "b${color}='\e[38;5;$((color_number+8))m'" (( color_number++ )) done unset color_number diff --git a/gvimrc b/gvimrc index a522110..60194bf 100644 --- a/gvimrc +++ b/gvimrc @@ -9,3 +9,5 @@ set guicursor+=a:blinkon0 "and none of them should blink set guiheadroom=0 map map! + +colorscheme iceberg