forked from strycore/dotfiles-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postactivate
65 lines (56 loc) · 1.36 KB
/
postactivate
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
#!/bin/bash
if [ ! -e $VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME ]
then
echo 'No project defined for this virtualenv.'
return
fi
project_path=$(cat $VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME)
if [ ! -e $project_path ]
then
echo "Project referenced in $project_path does not exists."
fi
unset $project_path
cdproject
if [ -e .git ]
then
git pull
fi
if [ -e .bzr ]
then
bzr pull
fi
#ctags -R --languages=python --python-kinds=-v $VIRTUAL_ENV/lib/python2.7
#if [ -e $VIRTUAL_ENV/src ]
#then
# ctags -R -a --languages=python --python-kinds=-v $VIRTUAL_ENV/src
#fi
#ctags -R -a --languages=python --python-kinds=-v .
#echo -ne "Building pysmell catalogs."
#
#if [[ ! -f PYSMELLTAGS.stdlib || -n "$(find . -maxdepth 1 -mmin +45 -name PYSMELLTAGS.stdlib)" ]]
#then
# pysmell $VIRTUAL_ENV/lib/python2.7 -x tests -o PYSMELLTAGS.stdlib >/dev/null
# echo -ne "."
#fi
#
#if [ -e $VIRTUAL_ENV/src ]
#then
# if [[ ! -f PYSMELLTAGS.src || -n "$(find . -maxdepth 1 -mmin +45 -name PYSMELLTAGS.src)" ]]
# then
# pysmell $VIRTUAL_ENV/src -x tests -o PYSMELLTAGS.src >/dev/null
# echo -ne "."
# fi
#fi
#if [[ ! -f PYSMELLTAGS || -n "$(find . -maxdepth 1 -mmin +45 -name PYSMELLTAGS)" ]]
#then
# pysmell .
# echo -ne '.'
#fi
#echo ' Done!'
#if [ -e manage.py ]
#then
# django-vim
# ./manage.py runserver
#else
# gvim
#fi