diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-14 18:00:43 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-14 18:00:43 -0700 |
commit | 053b5cc1709ad052fd00a20f2a27df2ddfc838c0 (patch) | |
tree | 9255848f04357281b6a15b21ee3e12572eb74f2c /home | |
parent | a38cd384b588752734854c039bd7a4c44862558d (diff) |
grrc, grep code
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/grrc | 4 |
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" |