From 6474b5f18ccdf66b632ff03d32d3ed217706e76f Mon Sep 17 00:00:00 2001
From: finga <finga@onders.org>
Date: Wed, 21 Jun 2023 09:01:09 +0200
Subject: [PATCH 1/2] fzf: Only load `fzf` key bindings when available

Only load the `fzf` key bindings when fzf is available. Reorder as
`.banner` seems more important.
---
 .zshrc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.zshrc b/.zshrc
index 9486e0d..1b8a817 100644
--- a/.zshrc
+++ b/.zshrc
@@ -53,8 +53,10 @@ DIRSTACKSIZE=20
 GPG_TTY=$(tty)
 export GPG_TTY
 
-# source fzf
-. /usr/share/doc/fzf/examples/key-bindings.zsh
-
 # source banner
 . ~/.banner
+
+# source fzf
+if [ -e "/usr/share/doc/fzf/examples/key-bindings.zsh" ] ; then
+    . /usr/share/doc/fzf/examples/key-bindings.zsh
+fi

From 3a4053e2e2a4b9b38fe3d7272c39d007ef95d5cc Mon Sep 17 00:00:00 2001
From: finga <finga@onders.org>
Date: Wed, 21 Jun 2023 09:03:09 +0200
Subject: [PATCH 2/2] virtualenvwrapper: Only load when available

Only load the `virtualenvwrapper` when it is available.
---
 .zshrc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.zshrc b/.zshrc
index 1b8a817..5da40b0 100644
--- a/.zshrc
+++ b/.zshrc
@@ -60,3 +60,8 @@ export GPG_TTY
 if [ -e "/usr/share/doc/fzf/examples/key-bindings.zsh" ] ; then
     . /usr/share/doc/fzf/examples/key-bindings.zsh
 fi
+
+# source virtualenvwrapper
+if [ -e "/usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh" ] ; then
+    . /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh
+fi