Skip to content

Commit

Permalink
Search recursively in subdirectories except for hidden folders
Browse files Browse the repository at this point in the history
  • Loading branch information
8hantanu authored Jun 1, 2024
1 parent b56426f commit 3a78ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdr
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cmdr_cfg() {

cmdr_all_cmds() {
if [ -d $CMDR_CMDS_PATH ]; then
awk '/```.*#/{flag=1;next}/```/{flag=0}flag' $CMDR_CMDS_PATH/*
find $CMDR_CMDS_PATH -type f -not -path "*/.*" -exec awk '/```.*#/{flag=1;next}/```/{flag=0}flag' {} \;
else
awk '/```.*#/{flag=1;next}/```/{flag=0}flag' $CMDR_CMDS_PATH
fi
Expand Down

0 comments on commit 3a78ab3

Please sign in to comment.