Skip to content

Instantly share code, notes, and snippets.

@JulienBreux
Created April 26, 2012 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulienBreux/2500620 to your computer and use it in GitHub Desktop.
Save JulienBreux/2500620 to your computer and use it in GitHub Desktop.
Mac Profile
# Alias
alias apache='sudo /opt/local/apache2/bin/apachectl'
alias mysqlstart='sudo /opt/local/bin/mysqld_safe5 &'
alias mysqlstop='sudo /opt/local/bin/mysqladmin5 -u root -p shutdown'
alias ls='ls -G'
alias ll='ls -hl'
# Sources
# Use (http://www.git-attitude.fr/2010/07/14/le-prompt-bash-qui-change-la-vie-avec-git/)
source "$HOME/.git-completion.bash" &&
# Exports
export GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWSTASHSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 &&
export PS1='\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]$(__git_ps1 " (\[\e[0;31m\]%s\[\e[m\])")\$ '
export LS_OPTIONS='--color=auto'
# MacPorts
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment