fish: conf.d/cabal-abbr: Helper for generating hie with multi-project root

See
https://github.com/josephsumabat/static-ls/issues/127#issuecomment-2392751273
This commit is contained in:
Sanchayan Maity 2024-11-20 21:07:34 +05:30
parent f8f7ee1d45
commit 8d8eb07508
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -38,3 +38,4 @@ abbr cpdp 'cabal-plan dot-png'
abbr cpt 'cabal-plan topo' abbr cpt 'cabal-plan topo'
abbr cplr 'cabal-plan license-reportate' abbr cplr 'cabal-plan license-reportate'
abbr chi 'hiedb -D .hiedb index .hiefiles --src-base-dir .' 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\''