Skip to content

Instantly share code, notes, and snippets.

@vsbuffalo
Created May 4, 2011 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsbuffalo/955940 to your computer and use it in GitHub Desktop.
Save vsbuffalo/955940 to your computer and use it in GitHub Desktop.
My Bash Profile
## Vince Buffalo's .profile
## Some fun first:
curl --connect-timeout 1 -Is slashdot.org | egrep '^X-(F|B)' | sed 's/^X-//'
## Set environmental variables
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin/:$PATH
export CLICOLOR=1
export EDITOR="emacsclient"
export LSCOLORS="gxfxcxdxbxegedabagacad"
export PROMPT_COMMAND="history -a"
export PS1="\u@\h:\!$ "
## Aliases and functions
alias gh="history | sort -k2 | uniq -f1 | sort -n | grep"
alias ll="ls -larth"
function up {
cd $(pwd | sed "s/\.*\($1[^\/]*\).*/\1/")
pwd
}
ec() {
emacsclient --alternate-editor="" -nw "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment