Created
May 4, 2011 20:16
-
-
Save vsbuffalo/955940 to your computer and use it in GitHub Desktop.
My Bash Profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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