Skip to content

Instantly share code, notes, and snippets.

@nickwhitt
Created October 8, 2012 17:04
Show Gist options
  • Save nickwhitt/3853635 to your computer and use it in GitHub Desktop.
Save nickwhitt/3853635 to your computer and use it in GitHub Desktop.
Bash Shell

Install Bash/Completion Ports

$> sudo port selfupdate
$> sudo port install bash [bash-completion]

Change Shell

$> sudo bash -c "echo /opt/local/bin/bash >> /private/etc/shells"
$> chsh -s /opt/local/bin/bash

Verify

$> echo $SHELL
$> echo $BASH_VERSION

Mac OS X Color Prompt

In ~/.bash_profile

export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
export LSCOLORS=gxfxcxdxbxegedabagacad
export TERM=xterm-color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment