Denis Barushev
Location of the MySQL Socket File in Different Systems
From #mysql_socket_location:
"/tmp/mysql.sock", # default
"/var/run/mysqld/mysqld.sock", # debian/gentoo
"/var/tmp/mysql.sock", # freebsd
"/var/lib/mysql/mysql.sock", # fedora
"/opt/local/lib/mysql/mysql.sock", # fedora
"/opt/local/var/run/mysqld/mysqld.sock", # mac + darwinports + mysql
"/opt/local/var/run/mysql4/mysqld.sock", # mac + darwinports + mysql4
"/opt/local/var/run/mysql5/mysqld.sock", # mac + darwinports + mysql5
"/opt/lampp/var/mysql/mysql.sock" # xampp for linux
Adding Bash Completion for Git on Mac OS X Leopard
Copy this code and paste it into Terminal.
This also should work for any *NIX.
Update
There are the easiest ways to add bash completion for git.
For Mac OS X
Install git via MacPorts:
sudo port install git-core +bash_completion
Then add the following lines at the end of your ~/.profile:
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
For Ubuntu
sudo aptitude install git-completion
For Fedora
sudo smart install bash-completion