From ead20830e7733217332fafe53e43198f7f28d689 Mon Sep 17 00:00:00 2001 From: Nui Narongwet Date: Thu, 21 Nov 2024 19:06:09 +0700 Subject: [PATCH] Add comment why conditional export --- zsh/.zshrc | 2 ++ zsh/src/zshrc/25-alias.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 93c826f6..b21029c9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -130,6 +130,8 @@ autoload -Uz use-gpg-ssh-agent alias gpr=' git pull --rebase' alias grrb=' git-reset-to-remote-branch' } + +# see https://dandavison.github.io/delta/environment-variables.html (( ! ${+commands[delta]} )) && { export GIT_PAGER='less -+F -+X -c' } diff --git a/zsh/src/zshrc/25-alias.zsh b/zsh/src/zshrc/25-alias.zsh index efc019e1..ad311ca5 100644 --- a/zsh/src/zshrc/25-alias.zsh +++ b/zsh/src/zshrc/25-alias.zsh @@ -64,6 +64,8 @@ autoload -Uz use-gpg-ssh-agent alias gpr=' git pull --rebase' alias grrb=' git-reset-to-remote-branch' } + +# see https://dandavison.github.io/delta/environment-variables.html (( ! ${+commands[delta]} )) && { export GIT_PAGER='less -+F -+X -c' }