Skip to content

Instantly share code, notes, and snippets.

@gartenfeld
Last active August 29, 2015 14:12
Show Gist options
  • Save gartenfeld/40f2d7935a99c6832966 to your computer and use it in GitHub Desktop.
Save gartenfeld/40f2d7935a99c6832966 to your computer and use it in GitHub Desktop.
Settings for Terminal.
# Enable tab completion
source ~/git-completion.bash
# colors!
# blue="\[\033[0;34m\]"
# purple="\[\033[0;35m\]"
# For background, add \[\033[48;5;256m\]
blue="\[\033[38;5;32m\]"
purple="\[\033[38;5;198m\]"
green="\[\033[0;32m\]"
reset="\[\033[0m\]"
# Change command prompt
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt
# '\$(__git_ps1)' adds git-related stuff
# '\W' adds the name of the current directory
export PS1="$purple\u$green\$(__git_ps1)$blue \W $ $reset"
export LC_CTYPE="utf-8"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment