From 46dcc769b3890baac0cd1758a33b21d27a95f706 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 27 Jan 2023 13:11:43 -0600 Subject: [PATCH] making blesh only work on smarter terminals and not in emacs --- chris/home.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chris/home.nix b/chris/home.nix index 31db4df..1280171 100644 --- a/chris/home.nix +++ b/chris/home.nix @@ -72,8 +72,12 @@ enable = true; bashrcExtra = '' # export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd - source $(blesh-share)/ble.sh - ble-face auto_complete="fg=238" + + if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then + source $(blesh-share) + ble-face auto_complete="fg=238" + fi + # eval "$(starship init bash)" export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_md=$'\e[1;32m'