add colortest and tweak foreground/background in light mode
This commit is contained in:
parent
d00e1d6787
commit
820ae0ed40
1 changed files with 14 additions and 2 deletions
|
@ -187,8 +187,8 @@ bashrc_customize_terminal_colors() {
|
||||||
local background="$Base03_RGB"
|
local background="$Base03_RGB"
|
||||||
local foreground="$Base1_RGB"
|
local foreground="$Base1_RGB"
|
||||||
else
|
else
|
||||||
local background="$Base2_RGB"
|
local background="$Base3_RGB"
|
||||||
local foreground="$Base02_RGB"
|
local foreground="$Base01_RGB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$ITERM_SESSION_ID" ]; then
|
if [ -n "$ITERM_SESSION_ID" ]; then
|
||||||
|
@ -269,6 +269,18 @@ solarized() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Print all 256 colors
|
||||||
|
colortest() {
|
||||||
|
for i in $(seq 0 15); do
|
||||||
|
for j in $(seq 0 15); do
|
||||||
|
local n=$(( 16 * $i + $j ))
|
||||||
|
printf "\x1b[48;5;${n}m %3d \033[0m" $n
|
||||||
|
done
|
||||||
|
printf '\n'
|
||||||
|
done
|
||||||
|
printf '\033[0m'
|
||||||
|
}
|
||||||
|
|
||||||
# Combined mkdir and cd
|
# Combined mkdir and cd
|
||||||
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
|
mkcd() { mkdir -p -- "$1" && cd -P -- "$1"; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue