From 8d8eb075080f04ad8eadb05b8f1ce7130925a690 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 20 Nov 2024 21:07:34 +0530 Subject: [PATCH] fish: conf.d/cabal-abbr: Helper for generating hie with multi-project root See https://github.com/josephsumabat/static-ls/issues/127#issuecomment-2392751273 --- fish/.config/fish/conf.d/cabal-abbr.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/fish/.config/fish/conf.d/cabal-abbr.fish b/fish/.config/fish/conf.d/cabal-abbr.fish index 0dc9406..d0a5a5f 100644 --- a/fish/.config/fish/conf.d/cabal-abbr.fish +++ b/fish/.config/fish/conf.d/cabal-abbr.fish @@ -38,3 +38,4 @@ abbr cpdp 'cabal-plan dot-png' abbr cpt 'cabal-plan topo' abbr cplr 'cabal-plan license-reportate' abbr chi 'hiedb -D .hiedb index .hiefiles --src-base-dir .' +abbr chic 'find . -name .hiefiles | awk \'{print $1" "substr($1, 1, length($1) - length(".hiefiles"))}\' | xargs -n2 sh -c \'hiedb -D .hiedb index $0 --src-base-dir=$1 --skip-types\''