fish: conf.d/cabal.abbr: Improve cabal build & add exec

The cabal exec command is sometimes helpful to debug why
HLS is not working. If that command complains HLS refuses
to work.
This commit is contained in:
Sanchayan Maity 2024-10-25 17:42:17 +05:30
parent cb54f0518f
commit d1c0772207
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -1,11 +1,12 @@
abbr cbench 'cabal bench --enable-benchmarks'
abbr cbuild 'cabal build --write-ghc-environment-files=always'
abbr cbuildn 'cabal build --write-ghc-environment-files=always --allow-newer'
abbr cbuild 'cabal build --jobs=(math --scale=0 (nproc) / 2) --write-ghc-environment-files=always'
abbr cbuildn 'cabal build --jobs=(math --scale=0 (nproc) / 2) --write-ghc-environment-files=always --allow-newer'
abbr cconf 'cabal configure'
abbr cwipe 'cabal clean'
abbr cclean 'cabal-clean'
abbr cdel 'cabal-clean --delete'
abbr crem 'cabal-clean --remove'
abbr cexec 'cabal exec -v0 -- ghc --print-libdir'
abbr cdoc 'cabal haddock --enable-documentation'
abbr cinstall 'cabal install --installdir=$HOME/.local/bin --overwrite-policy=always --install-method=copy'
abbr crun 'cabal run'