Use TERM=vscode-direct where available, for more colours
This commit is contained in:
10
bashrc
10
bashrc
@@ -54,9 +54,17 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$TERM" == "xterm" ] ; then
|
if [ "$TERM" == "xterm" ] ; then
|
||||||
# Upgrade; I don't think I use anything which doesn't support 256 colour these days.
|
# If it's available, use vscode-direct (which supports 16 million
|
||||||
|
# colours via the ';' sequences; required as PuTTY doesn't
|
||||||
|
# understand the ':' sequences).
|
||||||
|
#
|
||||||
|
# https://chadaustin.me/2024/01/truecolor-terminal-emacs/
|
||||||
|
if [[ -r /usr/share/terminfo/v/vscode-direct ]] ; then
|
||||||
|
export TERM=vscode-direct
|
||||||
|
else
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# If this is an xterm set the title to user@host:dir
|
# If this is an xterm set the title to user@host:dir
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
|
|||||||
Reference in New Issue
Block a user