Преглед изворни кода

Add some zig specific excludes and envvars

Alois Mahdal пре 10 месеци
родитељ
комит
41687d4417
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      dotfiles/config/bashum/main.bashrc

+ 3
- 1
dotfiles/config/bashum/main.bashrc Прегледај датотеку

@@ -288,6 +288,7 @@ grepfx() {
288 288
     grep --color -n \
289 289
         --exclude-dir 'utils' \
290 290
         --exclude-dir '.git' \
291
+        --exclude-dir '.zig-cache' \
291 292
         -o '#[F]IXME:.*' -R "$@"
292 293
 }
293 294
 
@@ -298,7 +299,7 @@ grepr() {
298 299
     # Number one tool for refactoring!
299 300
     #
300 301
     local p=$1; shift
301
-    grep --color -n --exclude-dir=".git" -e "$p" -R "$@"
302
+    grep --color -n --exclude-dir=".git" --exclude-dir ".zig-cache" --exclude-dir "zig-out" -e "$p" -R "$@"
302 303
 }
303 304
 
304 305
 grepr1() {
@@ -932,5 +933,6 @@ xhost >& /dev/null && xset b off
932 933
 # get rid of those .pyc files once and for all
933 934
 export PYTHONDONTWRITEBYTECODE=1
934 935
 
936
+export ZIG_LOCAL_CACHE_DIR="$HOME/.cache/zig-local"
935 937
 export ZK_ROOT="$HOME/.local/pim/zk"
936 938
 export ZKZIG_ROOT="$HOME/.local/pim/zk"