name *.DS_Store -type f -delete ' # An alias to start my custom MySQL installation instead of the default one alias mysql= '/usr/local/mysql-5.5.25-osx10.6-x86_64/bin/mysql -u root ' # This alias reloads this file alias reload_profile= '. DS_Store files in the folder I am currently in alias killDS= 'find. /./././ ' # Flush DNS (Mac OS X Moutain Lion or Lion) alias dnsflush= 'sudo killall -HUP mDNSResponder ' # To clear terminal alias c= 'clear ' # To exit terminal alias e= 'exit ' # See alias sudo= 'sudo ' # This helps me edit files that my user isn't the owner of alias edit= 'SUDO_EDITOR="open -FWne" sudo -e ' # The alias that takes me here - to editing these very aliases alias edit_profile= 'open -e ~/.bash_profile ' # I do a lot of web development, so I need to edit these non-owned files fairly often alias edit_hosts= 'edit /etc/hosts ' alias edit_httpd= 'edit /etc/apache2/nf ' alias edit_php= 'edit /etc/php.ini ' alias edit_vhosts= 'edit /etc/apache2/extra/nf ' # Some of my goto commands, including one to open the php extension folder for when I need to install custom extensions alias goto_web= 'cd ~/Sites ' alias goto_phpext= 'sudo open /usr/lib/php/extensions/no-debug-non-zts-20100525 ' # Go to MAMP/htdocs alias goto_htdocs= 'cd /Applications/MAMP/htdocs ' # This alias recursively destroys all. # Laravel Artisan alias art= 'php artisan ' # Open file with Sublime Text 2 $ st /folder/example.php alias st= 'open -a "Sublime Text 2" ' # Jump back n directories at a time alias.
0 Comments
Leave a Reply. |