shopt -s globstar for recursive matches
dblume

dblume commited on 2025-07-06 00:54:06
Showing 1 changed files, with 2 additions and 0 deletions.


Thanks, Julia Evans (b0rk)! Got this tip from:
https://wizardzines.com/zines/terminal/
... ...
@@ -157,6 +157,8 @@ case "$-" in
157 157
   # This sets the terminal title
158 158
   PROMPT_COMMAND="echo -ne \"\033]0;$HOSTNAME\007\""
159 159
 
160
+  # Enables recursive matches: ls -l **/*.png
161
+  shopt -s globstar
160 162
  ;;
161 163
 esac
162 164
 
163 165