configs  Check-in [9e42654d41]

Overview
Comment:zshrc: Add fallback for 8 color terminals
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9e42654d4160fd195f604a7783ec3c197c36c3011a1c80671a3b48841ef9b6ba
User & Date: js 2020-12-28 03:59:01
Context
2020-12-31
00:54
xinitrc: Add NetBSD-specific part, switch to tcwm check-in: af18365ba3 user: js tags: trunk
2020-12-28
03:59
zshrc: Add fallback for 8 color terminals check-in: 9e42654d41 user: js tags: trunk
2020-12-24
12:02
fish: Add completion for cross check-in: 38aaf455e4 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to zshrc.

21
22
23
24
25
26
27
28
29
30
31
32
33






34
35
36
37
38
39
40
if [ "$COLORTERM" = "24bit" -o "$COLORTERM" = "truecolor" \
    -o "$terminfo[colors]" = 16777216 ]; then
	local color_cwd="#209060"
	local color_host="#176945"
	local color_suffix="#29bc7d"
	local color_vcs="#43d696"
	local color_vcs_braces="#29bc7d"
else
	local color_cwd="29"
	local color_host="23"
	local color_suffix="36"
	local color_vcs="78"
	local color_vcs_braces="36"






fi
local color_jobs="yellow"
local color_status="red"

bindkey -v
# history-incremental-search-backward is much more useful than
# _history-complete-*







|





>
>
>
>
>
>







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
if [ "$COLORTERM" = "24bit" -o "$COLORTERM" = "truecolor" \
    -o "$terminfo[colors]" = 16777216 ]; then
	local color_cwd="#209060"
	local color_host="#176945"
	local color_suffix="#29bc7d"
	local color_vcs="#43d696"
	local color_vcs_braces="#29bc7d"
elif [ "$terminfo[colors]" = 256 ]; then
	local color_cwd="29"
	local color_host="23"
	local color_suffix="36"
	local color_vcs="78"
	local color_vcs_braces="36"
else
	local color_cwd=2
	local color_host=6
	local color_suffix=2
	local color_vcs=2
	local color_vcs_braces=2
fi
local color_jobs="yellow"
local color_status="red"

bindkey -v
# history-incremental-search-backward is much more useful than
# _history-complete-*