public
Description: Meus arquivos de configuração (bash, git, etc...)
Clone URL: git://github.com/edsono/my-profiles.git
Script modificado para o .bashrc, .profile somente executa o .bashrc
edsono (author)
Thu Sep 25 08:04:47 -0700 2008
commit  25273b20242ff13ae22953352b4f075320af4013
tree    8c628f25fe926e1d6692be5f43304e8ceb4f5a03
parent  df9db67035b40615926f26d25f53962df5e03748
...
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
 
95
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
0
@@ -1,94 +1 @@
0
-# Master profile
0
-# Darwin & Linux independent
0
-
0
-# Aliases
0
-alias h='history'
0
-alias g='grep'
0
-alias f='find'
0
-alias l='ls -laF'
0
-alias ll='ls -la'
0
-alias ..='cd ..'
0
-
0
-# Mac OS X specifics
0
-alias e='mate '
0
-alias ls='ls -hG'
0
-alias dev='cd ~/Development'
0
-
0
-# Git
0
-alias gb='git branch'
0
-alias gba='git branch -a'
0
-alias gc='git commit -v'
0
-alias gca='git commit -v -a'
0
-alias gd='git diff | mate'
0
-alias gl='git pull'
0
-alias gp='git push'
0
-alias gst='git status'
0
-
0
-# Ruby
0
-alias irb='irb --readline -r irb/completion -rubygems'
0
-
0
-# jRuby
0
-# alias jr='jruby'
0
-# alias jrs='jruby -S'
0
-# export PATH=/opt/jruby/bin:$PATH
0
-
0
-# MYSQL
0
-alias mysql=mysql5
0
-export PATH=/usr/local/mysql/bins:$PATH
0
-
0
-# ORACLE
0
-export DYLD_LIBRARY_PATH="/opt/oracle/instantclient_10_2"
0
-export SQLPATH="/opt/oracle/instantclient_10_2"
0
-export PATH=/opt/oracle/instantclient_10_2:$PATH
0
-
0
-# MacPorts.
0
-export PATH=/opt/local/bin:/opt/local/sbin:$PATH
0
-
0
-# Other exports
0
-GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
0
-CLICOLOR=1
0
-DISPLAY=:0.0
0
-
0
-export GREP_OPTIONS
0
-export CLICOLOR
0
-export DISPLAY
0
-
0
-# mategem
0
-_mategem()
0
-{
0
- local curw
0
- COMPREPLY=()
0
- curw=${COMP_WORDS[COMP_CWORD]}
0
- local gems="$(gem environment gemdir)/gems"
0
- COMPREPLY=($(compgen -W '$(ls $gems)' -- $curw));
0
- return 0
0
-}
0
-complete -F _mategem -o dirnames mategem
0
-
0
-# gemdoc
0
-export GEMDIR=`gem env gemdir`
0
-
0
-gemdoc() {
0
- open $GEMDIR/doc/`$(which ls) $GEMDIR/doc | grep $1 | sort | tail -1`/rdoc/index.html
0
-}
0
-
0
-_gemdocomplete() {
0
- COMPREPLY=($(compgen -W '$(`which ls` $GEMDIR/doc)' -- ${COMP_WORDS[COMP_CWORD]}))
0
- return 0
0
-}
0
-
0
-complete -o default -o nospace -F _gemdocomplete gemdoc
0
-
0
-# bash-completion
0
-if [ -f /opt/local/etc/bash_completion ]; then
0
- . /opt/local/etc/bash_completion
0
-fi
0
-
0
-# Show Git Branch on prompt
0
-parse_git_branch() {
0
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
0
-}
0
-
0
-# However, I had the same line-wrapping problem you did. The fix was to insert \[ and \] around
0
-# the ANSI escapes so that the shell knows not to include them in the line wrapping calculation.
0
-export PS1="\[\e[32m\]\u@\h:\[\e[36m\]\w\[\e[32m\]\$(parse_git_branch)\[\e[0;36m\] $ \[\e[0m\]"
0
+[ -f .bashrc ] && . .bashrc
0
\ No newline at end of file

Comments

    No one has commented yet.