Make sure delta exists before acutally using it

This commit is contained in:
Gal Szkolnik 2025-05-08 15:54:30 +00:00
parent 9021efe3ac
commit c768ee7ad2
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@
# oauthScopes = read_repository
[core]
editor = vim
{{- if lookPath "delta" -}}
# delta will used as the default pager for git
# and ov as the default pager for delta
# the pager will be overloaded via the [pager] section for a few commands
@ -53,6 +54,7 @@
# It allows to maintain a simpler config file and avoid escaping quotes
diff = delta --features ov-diff
log = delta --features ov-log
{{- end -}}
[interactive]
diffFilter = delta --color-only