Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am eduardoshanahan on github.
* I am eduardoshanahan (https://keybase.io/eduardoshanahan) on keybase.
* I have a public key ASCxxO8nfS5Zd9UnhsZRc2firb0m5ws9EzaxXhX_6DqPOAo
To claim this, I am signing this object:
@eduardoshanahan
eduardoshanahan / .bash_profile
Last active February 28, 2016 22:56
A fragment of my .bash_profile regarding prompt, Git and Docker in the Mac
# Git branch in prompt.
# Taken from http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Terminal prompt
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\]:"
@eduardoshanahan
eduardoshanahan / gist:6563528
Created September 14, 2013 16:46
Nginx and Vagrant sendfile off
http {
sendfile off;
server {
location / {
}
}
}