Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Delete WebKit search fields (See related posts)

# defaults read | grep -i
# open $HOME/Library/Preferences/
# put the following function into ~/.bash_login

function dws() { 

if [[ ! -e "$HOME/Library/Preferences/" ]]; then
   printf "There is no file in $HOME/Library/Preferences\x21\n"
   return 1

defaults read | sed -En -e "s/^[[:space:]]*\"(*)\" = .*$/\1/p" | while read item; do 
   #printf -- "$item\n"
   defaults delete "$item" 2>/dev/null

return 0


You need to create an account or log in to post comments to this site.

Related Posts