Last active
May 1, 2018 05:44
-
-
Save aczietlow/25a9effa7cf6efd7d007 to your computer and use it in GitHub Desktop.
bash stuff for the mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################### | |
# System Specific | |
########################################### | |
#mysql | |
#export PATH="$PATH:/usr/local/mysql/bin/mysql" | |
#alias mysql='/usr/local/mysql/bin/mysql' | |
#alias mysqldump='/usr/local/mysql/bin/mysqldump' | |
#alias mysqladmin='/usr/local/mysql/bin/mysqladmin' | |
#Apache | |
alias apacheEdit='sudo vim /etc/httpd/httpd.conf' # apacheEdit: Edit httpd.conf | |
alias apacheRestart='sudo apachectl graceful' # apacheRestart: Restart Apache | |
alias herr='tail /var/log/httpd/error_log' # herr: Tails HTTP error logs | |
alias apacheLogs="less +F /var/log/apache2/error_log" # Apachelogs: Shows apache error logs | |
#Vagrant | |
export PATH=$PATH:/Applications/VirtualBox.app/Contents/MacOS/ | |
alias vb-restart="sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart" | |
#BASH | |
alias ll='ls -lhA' | |
alias fuckit='sudo "$BASH" -c "$(history -p !!)"' | |
alias grep="grep --color=auto" | |
alias egrep="egrep --color=auto" | |
# Composer executables | |
export PATH="$PATH:~/.composer/vendor/bin/" | |
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment