making blesh only work on smarter terminals and not in emacs

This commit is contained in:
Chris Cochrun 2023-01-27 13:11:43 -06:00
parent c39264760e
commit 46dcc769b3

View file

@ -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
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'