Skip to content

Instantly share code, notes, and snippets.

@billsuxx
Last active November 16, 2015 08:27
Show Gist options
  • Select an option

  • Save billsuxx/9451b9722c58f7be16b5 to your computer and use it in GitHub Desktop.

Select an option

Save billsuxx/9451b9722c58f7be16b5 to your computer and use it in GitHub Desktop.
PHP_AUTOCONF="/usr/local/bin/autoconf"
export PS1='\[\033[1;31m\]\u\[\033[0m\]\[\033[1;37m\]@\[\033[0m\]\[\033[1;34m\]\h\[\033[0m\] \[\033[1;33m\]\d \A\[\033[0m\] \[\033[1;32m\]\w\[\033[0m\] \[\033[1;31m\]\$\[\033[0m\] '
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add -A'
alias gb='git branch'
alias gbd='git branch -d '
alias gc='git commit'
alias gcm='git commit -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout master'
alias gd='git diff'
alias gda='git diff HEAD'
alias gi='git init'
alias gl='git log'
alias glg='git log --graph --oneline --decorate --all'
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all'
alias gm='git merge --no-ff'
alias gp='git pull'
alias gpo='gpo'
alias gpom='git push origin master'
alias gss='git status -s'
alias gst='git stash'
alias gstl='git stash list'
alias gstp='git stash pop'
alias gstd='git stash drop'
alias gs='echo ""; echo "*********************************************"; echo -e " DO NOT FORGET TO PULL BEFORE COMMITTING"; echo "*********************************************"; echo ""; git status'
alias logg='git log --graph --decorate --oneline --abbrev-commit --all'
# ----------------------
# Git Functions
# ----------------------
function gpo() { git push origin $1; }
# Git log find by commit message
function glf() { git log --all --grep="$1"; }
export PATH="/usr/local/sbin:$PATH"
# ---------
# custom
# ---------
alias ehost='sudo mcedit /etc/hosts'
alias ebash='mcedit ~/.bash_profile'
alias bashreload='source ~/.bash_profile'
alias showbash='cat ~/.bash_profile'
# ----------
# nginx && php-fpm
# ---------
alias nginx.start='sudo launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
alias web.restart='php-fpm.restart && nginx.restart'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment