Wednesday, March 3, 2021

開發 Clojure 搭配使用的 ack 設置檔 (.ackrc)

ack-grep 我一直覺得滿好用的,不用特別設定就會自動忽略 node_modules 這種可以忽略的資料夾。然而,開發 Clojure ,尤其又使用 deps.edn &clj 的話,還是要透過 .ackrc 來設定一些資料夾,讓 ack 視為自動忽略。

--------分隔線 ----------------


# Tips:
# using ack to show only the clojure files for further processing
# ack -f --clojure
#
--ignore-dir=resources
--ignore-dir=.shadow-cljs
--ignore-dir=.cpcache