Skip to content

Instantly share code, notes, and snippets.

@breiter
Last active December 10, 2019 10:32
Show Gist options
  • Save breiter/b6a5c740c1ef59b57348 to your computer and use it in GitHub Desktop.
Save breiter/b6a5c740c1ef59b57348 to your computer and use it in GitHub Desktop.
OS X Bash profile
# MacPorts Installer addition on 2012-07-11_at_19:18:58: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# pip modules install path
export PATH=$PATH:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/
# node modules install path
export PATH=$PATH:~/node_modules/.bin
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
#classic, minimalist prompt + current git branch
PS1='$ '
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
if [ -f /opt/local/share/git/git-prompt.sh ]; then
. /opt/local/share/git/git-prompt.sh
PS1='\[\033[1;36m\]$(__git_ps1 "[%s] ")\[\033[0m\]$ '
fi
#fix tab name on exit from ssh without borking bourne shell and xterm without -ls
if [ `(type update_terminal_cwd | grep -q 'shell function' | wc -l) 2> /dev/null` -eq 0 ]; then
export PROMPT_COMMAND='printf "\e]0;\a";update_terminal_cwd;'
fi
#colorful
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;31;40'
export MINICOM='--color on'
export EDITOR=vim
export PAGER=less
#enable command-line completion for aws
complete -C aws_completer aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment