Created
October 14, 2008 03:41
-
-
Save kueda/16663 to your computer and use it in GitHub Desktop.
My .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
alias ls="ls -FG" | |
# Change the window title of X terminals | |
case $TERM in | |
xterm*|rxvt|Eterm|eterm) | |
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' | |
;; | |
screen) | |
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' | |
;; | |
esac | |
# PS1='\[\033[1;32m\]\W > \[\033[0m\]' # Plain | |
PS1='\[\033[1;32m\]\W $(__git_ps1 "(%s) ")> \[\033[0m\]' # Plain + Git | |
# Set MySQL stuff | |
PATH=/opt/local/lib/mysql5/bin:$PATH | |
export PATH | |
alias mysqlstart='sudo /opt/local/bin/mysqld_safe5 &' | |
alias mysqlstop='/opt/local/bin/mysqladmin5 -u root shutdown' | |
# Yay paths | |
PATH=/usr/sbin:/usr/local/bin:/usr/local/lib:$PATH | |
export PATH | |
# I GOTS NEEDS! | |
PATH=~/bin:$PATH | |
export PATH | |
# MacPorts paths | |
export PATH=/opt/local/bin:$PATH | |
export LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH | |
export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/opt/local/lib:/usr/local/lib | |
export MANPATH=/opt/local/share/man:$MANPATH | |
# Postgres Paths | |
export PATH=/opt/local/lib/postgresql83/bin:$PATH | |
alias pgsqlstart='sudo -u postgres pg_ctl start -D /opt/local/var/db/postgresql83/defaultdb -l /opt/local/var/db/postgresql83/defaultdb/postgresql.log' | |
alias pgsqlstop='sudo -u postgres pg_ctl stop -D /opt/local/var/db/postgresql83/defaultdb -l /opt/local/var/db/postgresql83/defaultdb/postgresql.log' | |
# tab completion in irb | |
alias irb="irb -r irb/completion" | |
# colors in ri | |
alias ri="ri -Tf ansi" | |
# set default editor | |
export EDITOR="mate -w" # TextMate | |
# alias for a disk usage hogs | |
alias mhog="du -h | grep -E ^[[:space:]]*[0-9]*\.?[0-9]M" | |
alias ghog="du -h | grep -E ^[[:space:]]*[0-9]*\.?[0-9]G" | |
# MacPorts Apache | |
PATH="/opt/local/apache2/bin:${PATH}" | |
export PATH | |
# Git | |
source ~/.git-completion.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment