garybernhardt / dotfiles
My vim, bash, emacs, etc. configurations. These have grown over many years, so they may not make sense in places. ;)
Clone this repository (size: 1.5 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/garybernhardt/dotfiles/
| commit 146: | dd404c4f6be8 |
| parent 145: | 54bc568816ad |
| branch: | default |
Added activate_virtualenv function to .profile
4 months ago
Changed (Δ167 bytes):
raw changeset »
.profile (5 lines added, 0 lines removed)
| … | … | @@ -28,6 +28,11 @@ gd() { git diff $* | view -; } |
28 |
28 |
gdc() { gd --cached $*; } |
29 |
29 |
alias pygrep="grep --include='*.py' $*" |
30 |
30 |
alias rbgrep="grep --include='*.rb' $*" |
31 |
activate_virtualenv() { |
|
32 |
if [ -f ../env/bin/activate ]; then . ../env/bin/activate; |
|
33 |
elif [ -f ../../env/bin/activate ]; then . ../../env/bin/activate; |
|
34 |
fi |
|
35 |
} |
|
31 |
36 |
source ~/bin/git-completion.bash |
32 |
37 |
source ~/bin/hg-completion.sh |
33 |
38 |
