From 2afafef362d7d8055302a8c6039c9a4c88ed4cc9 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 27 Jan 2023 00:03:46 +0100 Subject: [PATCH] meta:envrc: Generate vim helptags when entering Move the commands into a function, so that the function can be run in the background. --- meta/envrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/envrc b/meta/envrc index 843c2b5..9cd6b8c 100644 --- a/meta/envrc +++ b/meta/envrc @@ -1 +1,7 @@ -git fetch --all 0<&- &>/dev/null 3>&- & disown +envrc() { + nvim -es <<<"helptags ALL" + git fetch --all +} + +# Run in background +envrc 0<&- &>/dev/null 3>&- & disown