summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-03-14 18:00:43 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-03-15 00:19:59 -0700
commit4f550fad86a0050cf874f79722c623d50d627731 (patch)
treefc3264eae8105244537b38b195c1269d568f3b15 /home/xyz/.local
parent447e55eb962ddb2f2bedf8b9022780ac6f3c6709 (diff)
grrc, grep code
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-xhome/xyz/.local/bin/grrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/grrc b/home/xyz/.local/bin/grrc
new file mode 100755
index 00000000..757d2fff
--- /dev/null
+++ b/home/xyz/.local/bin/grrc
@@ -0,0 +1,4 @@
+#!/bin/sh
+# GRep -R Code
+
+[ "$1" ] && find "$HOME/archive/programs/public_archive_codes" "$HOME/archive/programs/private_archive_codes" "$XDG_DOCUMENTS_DIR/notes" -mindepth 1 -maxdepth 1 -path "*/\.git" -prune -o -type d -print0 | xargs -0 grep --color=always -iIR "$@" "$HOME/.local/bin" "$HOME/.bashrc" "$HOME/.profile" "$HOME/.xinitrc" "$HOME/programs/suckless/dwm_fly/config.def.h" "$XDG_CONFIG_HOME/nsxiv/exec/key-handler" | "$PAGER"