Skip to content

Instantly share code, notes, and snippets.

@mushfiq
Created February 1, 2013 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mushfiq/4691200 to your computer and use it in GitHub Desktop.
Save mushfiq/4691200 to your computer and use it in GitHub Desktop.
alias p=pwd
alias l='ls -l'
alias webroot='cd /Library/WebServer/Documents'
alias php.ini='vim /private/etc/php.ini'
alias httpd.conf='sudo vim /etc/apache2/extra/httpd-vhosts.conf'
alias hosts='sudo vim /etc/hosts'
alias mongo-server='/Library/mongodb-osx-x86_64-1.8.1/bin/mongod'
alias mongo-client='/Library/mongodb-osx-x86_64-1.8.1/bin/mongo'
alias down='sudo halt'
alias apache='sudo /usr/sbin/apachectl restart'
alias errorlog='sudo vim /private/var/log/apache2/error_log'
alias bash='mate /Users/caveman/.bash_profile'
alias accesslog='sudo vim /private/var/log/apache2/access_log '
alias lan-card='sudo ifconfig en2 ether 00:23:5a:b5:eb:28'
alias start-rabbitmq='sudo rabbitmq-server'
alias stop-rabbitmq='sudo rabbitmqctl stop'
source ~/.git-completion.sh
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
alias haproxy='/usr/local/sbin/haproxy'
#tiny unix command mkcd for creating and cd into a directory
function mkcd {
if [ ! -n "$1" ]; then
echo "Enter a directory name"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment