OS X: enable Keychain padlock icon in menu bar
Open Applications > Utilities > Keychain Access, open Preferences and check ‘Show Status in Menu Bar’.
Open Applications > Utilities > Keychain Access, open Preferences and check ‘Show Status in Menu Bar’.
find . -name "Thumbs.db" -exec rm '{}' \;
Add this to the bottom of .bash_profile:
alias fixbs='stty erase `tput kbs`'
fixbs
Q: Is there a way to disable the automatic update of the Project Drawer? Since I’m editing files that are located on a slow network drive (DAV) it takes several seconds before TextMate becomes responsive when I tab back to it. A: You can create a static (thus non-updating) project by dragging files (instead of folders) to the project drawer. A script to create a (static) tmproj file from a folder:
#!/bin/bash
read_dir () {
echo "{ name = \"`basename "$1"`\"; children = ("
for file in "$1"/*; do
if [[ -f $file ]]; then
echo "{filename = \"$file\"; },"
elif [[ -d $file ]]; then
read_dir "$file"
fi
done
echo '); },'
}
echo '{ documents = ('
read_dir "$1"
echo '); }'
Save as build_project.sh and chmod a+x build_project.sh and run it like so:
./build_project.sh myfolder/ > myproject.tmproj