Skip to content

Instantly share code, notes, and snippets.

@Pyrolistical
Created December 24, 2014 01:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pyrolistical/6cf2341efffa01f18b5f to your computer and use it in GitHub Desktop.
Save Pyrolistical/6cf2341efffa01f18b5f to your computer and use it in GitHub Desktop.
best .profile
RIGINAL_PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
source `brew --prefix git`/etc/bash_completion.d/git-prompt.sh
source `brew --prefix git`/etc/bash_completion.d/git-completion.bash
export JAVA_HOME=`/usr/libexec/java_home`
export MAVEN_HOME='/usr/local/opt/maven/libexec/'
export PATH="$ORIGINAL_PATH:/Users/rchen/dev/tools/bin"
hg_ps1() {
hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
}
function tab_name {
printf "\e]1;$1\a"
}
function set_tab_name_to_cpwd {
tab_name `cpwd`
}
export PS1='$(set_tab_name_to_cpwd)$(cpwd)\[\e[0;32m\]$(__git_ps1 " %s")$(hg_ps1)\[\e[0m\]\$ '
export LESS='-R'
alias ll='ls -lah'
alias mack='ack --ignore-dir=target --ignore-dir=.idea'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment