Default search scope 
Set the default search scope when performing a search
- Tested on macOS: 
- Sonoma
 - Ventura
 - Monterey
 - Big Sur
 
 - Parameter type: string
 
Set to SCcf 
Search the current folder
bash
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCcf" && killall FinderSet to SCsp 
Use the previous search scope
bash
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCsp" && killall FinderSet to SCev (default value) 
Search this Mac
bash
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCev" && killall FinderRead current value 
bash
defaults read com.apple.finder "FXDefaultSearchScope"Reset to default value 
bash
defaults delete com.apple.finder "FXDefaultSearchScope" && killall Finder