aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/hyperterm.sh
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2025-05-19 15:08:49 -0500
committerAstound <kirito@disroot.org>2025-05-19 15:08:49 -0500
commit14ae23997ee46a575a7a85e197c8514e62958fbd (patch)
treed4537cfa8566b6ce3dbfdfc7c835055f85366d7a /hyperterm/hyperterm.sh
parent7df48977ec6d40f646786407f9f7f1c5f95bd390 (diff)
downloadhyperterm-14ae23997ee46a575a7a85e197c8514e62958fbd.tar.lz
hyperterm-14ae23997ee46a575a7a85e197c8514e62958fbd.tar.xz
hyperterm-14ae23997ee46a575a7a85e197c8514e62958fbd.zip
Disable PROMPT_COMMAND when TERM_PROGRAM is vscode
Diffstat (limited to 'hyperterm/hyperterm.sh')
-rw-r--r--hyperterm/hyperterm.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/hyperterm/hyperterm.sh b/hyperterm/hyperterm.sh
index f70458c..c1d0b9d 100644
--- a/hyperterm/hyperterm.sh
+++ b/hyperterm/hyperterm.sh
@@ -20,10 +20,15 @@ if [[ ! -f /bin/bash ]]; then
fi
fi
+# -------------------------------------------------------
+# if TERM_PROGRAM is set to vscode, unset PROMPT_COMMAND
+# -------------------------------------------------------
+[[ "$TERM_PROGRAM" == "vscode" ]] && unset PROMPT_COMMAND
+
#---------------
# Emacs support
#---------------
-[ "$TERM" = "dumb" ] && export PAGER=/bin/cat
+[[ "$TERM" = "dumb" ]] && export PAGER=/bin/cat
#----------------
# bash_aliases