Skip to content

Instantly share code, notes, and snippets.

@dtjm
Created August 13, 2010 17:10
Show Gist options
  • Save dtjm/523215 to your computer and use it in GitHub Desktop.
Save dtjm/523215 to your computer and use it in GitHub Desktop.
My bash configs.
alias ll='ls -l'
alias lla='ls -la'
alias llh='ls -lh'
# .bashrc vs .bash_profile: http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
source ~/.bash_aliases
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$HOME/bin:/usr/local/sbin/:/usr/local/bin:/usr/sbin:/sbin:$PATH
export PATH
export EDITOR=vim
# Git prompt
export GIT_SHOWDIRTYSTATE=1
export GIT_SHOWSTASHSTATE=1
PS1='\u@\h \W\[\033[01;33m\]$(__git_ps1 " (%s)")\[\033[00m\] $ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment