Created
May 3, 2011 15:32
-
-
Save keimlink/953549 to your computer and use it in GitHub Desktop.
My .profile file
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
# General settings | |
export DISPLAY=:0.0 | |
export EDITOR=/usr/bin/vim | |
export LC_ALL=en_US.UTF-8 | |
# Private paths | |
export PYTHONPATH="/Users/zappi/Projekte/Python" | |
export PATH="/Users/zappi/bin:/usr/texbin/:${PATH}" | |
# Bash completion | |
if [ -f /opt/local/etc/bash_completion ]; then | |
. /opt/local/etc/bash_completion | |
fi | |
# Git bash completion | |
if [ -f /opt/local/etc/bash_completion.d/git ]; then | |
. /opt/local/etc/bash_completion.d/git | |
fi | |
# Mercurial bash completion | |
if [ -f /Users/zappi/Projekte/Python/hg-stable/contrib/bash_completion ]; then | |
. /Users/zappi/Projekte/Python/hg-stable/contrib/bash_completion | |
fi | |
# Colors | |
export CLICOLOR=1 | |
export LS_OPTIONS='--color=auto' | |
eval `dircolors -b /Users/zappi/.dir_colors` | |
# Aliases | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
alias ls='ls $LS_OPTIONS' | |
alias l='ls -CF' | |
alias la='ls -A' | |
alias ll='ls -alF' | |
alias mate='open -a /Applications/TextMate.app $@' | |
alias mate-cleanup='find . -name ._* | xargs rm -v' | |
alias siteheader='curl -LI $@' | |
# Command prompt with current git or mercurial branch | |
my_vcprompt() { | |
hg prompt $'\e[00mon \e[31m{hg:{branch}}{status}' 2> /dev/null | |
__git_ps1 '\e[00mon \e[31mgit:%s' | |
} | |
export MY_BASEPROMT='\e[32m\u \e[00min \e[36m\w $(my_vcprompt)\e[00m' | |
export PS1="${MY_BASEPROMT} | |
$ " | |
# Python | |
export PYTHONDONTWRITEBYTECODE=true | |
# virtualenvwrapper | |
export WORKON_HOME=$HOME/.virtualenvs | |
source /usr/local/bin/virtualenvwrapper.sh | |
export VIRTUALENV_USE_DISTRIBUTE=true | |
# pip | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
export PIP_USE_MIRRORS=true | |
_pip_completion() | |
{ | |
COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \ | |
COMP_CWORD=$COMP_CWORD \ | |
PIP_AUTO_COMPLETE=1 $1 ) ) | |
} | |
complete -o default -F _pip_completion pip | |
# Exclude OS X resource forks with tar | |
export COPYFILE_DISABLE=true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My current
.profile
can be found at https://bitbucket.org/keimlink/dotfiles/src/tip/bash/profile