From c1dd7c9fe235a1cf244f057550f82c3b5f43466d Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 23 Oct 2021 21:42:44 -0700 Subject: [PATCH] zsh: don't set glow alias in vim terminal --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 0b8361f..cba1681 100644 --- a/.zshrc +++ b/.zshrc @@ -81,7 +81,8 @@ alias df='df -h' # Human-readable sizes alias free='free -m' # Show sizes in MB alias bc='bc -ql' # Make bc usable for fast math - alias glow='glow -p' # Glow preview in `less` + [ -z "$VIMRUNTIME" ] && + alias glow='glow -p' # force Glow to preview with `less` if not in vim # Colors alias \