kueda (owner)

Revisions

  • 76859f Mon Oct 13 20:41:38 -0700 2008
gist: 16663 Download_button fork
public
Description:
My .profile
Public Clone URL: git://gist.github.com/16663.git
Embed All Files: show embed
Bash #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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