Created
December 24, 2014 01:19
-
-
Save Pyrolistical/6cf2341efffa01f18b5f to your computer and use it in GitHub Desktop.
best .profile
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
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