Created
December 2, 2015 02:01
-
-
Save michaelrios/97475f4f8c77bda01781 to your computer and use it in GitHub Desktop.
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
alias editAliases="vim ~/.bash_aliases && source ~/.bash_aliases" | |
alias newSource="source ~/.zshrc" | |
alias gs="git status" | |
alias ga="git add" | |
alias g.="git add ." | |
alias gd="git branch -d" | |
gcom () { | |
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
git commit -m "$branch: $1" | |
} | |
ggetrem () { | |
git co -b $1 $2/$1 | |
} | |
alias corn='git co release-next' | |
alias rebase='git rebase release-next' | |
alias updateme='git fetch tio && git co master && git pull tio master && ggpush -f && corn && git pull tio release-next && ggpush -f' | |
makepr () { | |
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
open "https://github.com/tuitionio/v3.tuition.io/compare/release-next...michaelrios:$branch?diff=split" | |
} | |
alias flex="cd ~/repos/flex395.com" | |
flexConsoleTail () { | |
cd /Users/michael/repos/flex395.com/storage/logs/console | |
ls | tail -1 | |
tail -f $(ls | tail -1) | |
} | |
alias flextailhttp="cd /Users/michael/repos/flex395.com/storage/logs/http && tail -f $(ls | tail -1)" | |
alias tio="cd ~/repos/v3.tuition.io" | |
tiotail () { | |
cd /Users/michael/repos/v3.tuition.io/storage/logs/ | |
ls | tail -1 | |
tail -f $(ls | tail -1) | |
} | |
alias art="php artisan" | |
alias apacheVhosts="sudo vim /etc/apache2/extra/httpd-vhosts.conf" | |
alias apacheHttpd="sudo vim /etc/apache2/httpd.conf" | |
alias apacheHosts="sudo vim /etc/hosts" | |
alias apacheRestart="sudo apachectl restart" | |
apacheTail () { | |
cd /var/log/apache2 | |
tail -f access_log error_log | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment