adding tricks to solve vibe problems about color and window repaint

This commit is contained in:
hugogogo
2026-10-30 00:10:59 +01:00
parent 6bd7222755
commit 950f222602
2 changed files with 9 additions and 8 deletions
+6 -4
View File
@@ -4,10 +4,6 @@
#PS1="%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)"
#PS1='%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%test%{$reset_color%} $(git_prompt_info)'
# launch vlc or mpv in flatpax sandboxed
mpv-sandbox() { flatpak run io.mpv.Mpv "$@"; }
vlc-sandbox() { flatpak run org.videolan.VLC "$@"; }
# ----------------------------------------------------
# default configs
@@ -221,5 +217,11 @@ export PATH=$JAVA_HOME/bin:$PATH
# to print the date for the history command
setopt EXTENDED_HISTORY
# screen doesn't relay 24-bit color but passes COLORTERM through, so apps
# wrongly emit truecolor (blinking text, see mistral-vibe#1248).
# $STY is set only inside screen windows: this targets screen alone.
# NOTE: remove if a future screen (>= 5.x) relays truecolor.
if [ -n "$STY" ]; then unset COLORTERM; fi
. "$HOME/.local/bin/env"