bashrc: only set TERM if TMUX_PANE isn't set
This commit is contained in:
18
bashrc
18
bashrc
@@ -53,20 +53,10 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
|
|||||||
debian_chroot=$(cat /etc/debian_chroot)
|
debian_chroot=$(cat /etc/debian_chroot)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if [ -a "$TERM" == "xterm" ] ; then
|
if [ -z "$TMUX_PANE" ] ; then
|
||||||
# # If it's available, use vscode-direct (which supports 16 million
|
# Don't override tmux's terminal value. (Testing this out...)
|
||||||
# # colours via the ';' sequences; required as PuTTY doesn't
|
export TERM=xterm-256color
|
||||||
# # understand the ':' sequences).
|
fi
|
||||||
# #
|
|
||||||
# # 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
|
|
||||||
# fi
|
|
||||||
#else
|
|
||||||
export TERM=xterm-256color
|
|
||||||
#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