@@ -16,14 +16,14 @@ source $BASEDIR/process_functions.sh
16
16
# You can override this setting in your .zshrc
17
17
if [ " $WORKIT_HOME " = " " ]
18
18
then
19
- WORKIT_HOME=( " $HOME /src" " $HOME /configs " )
19
+ WORKIT_HOME=( " $HOME /src" )
20
20
export WORKIT_HOME
21
21
fi
22
22
23
- # Normalize the directory name in case it includes
23
+ # Normalize the directory name in case it includes
24
24
# relative path components.
25
- # this broke hard for some reason so forget normalizing for now.
26
- # it's probably some sort of subshell thing again, but
25
+ # this broke hard for some reason so forget normalizing for now.
26
+ # it's probably some sort of subshell thing again, but
27
27
# for now just leave it be and look it up later
28
28
# for ((i=1;i<=${#WORKIT_HOME};i++)); do
29
29
# rpath=$WORKIT_HOME[$i]
@@ -91,10 +91,10 @@ function verify_active_project () {
91
91
# source the pre/post hooks
92
92
function workit_source_hook () {
93
93
scriptname=" $1 "
94
-
95
- if [ -f " .workit/ $scriptname " ]
94
+
95
+ if [ -f " $scriptname " ]
96
96
then
97
- source " .workit/ $scriptname "
97
+ source " $scriptname "
98
98
fi
99
99
}
100
100
@@ -138,9 +138,9 @@ function mkworkit () {
138
138
139
139
eval " projname=\$ $# "
140
140
141
- proj_workit_path=" $proj_path /$projname /.workit "
141
+ proj_workit_path=" $proj_path /$projname /"
142
142
143
- # test for existing proj dir, if not create it, otherwise add
143
+ # test for existing proj dir, if not create it, otherwise add
144
144
# the post* script files to the existing dir
145
145
if [ ! -d $proj_workit_path ]
146
146
then
@@ -153,7 +153,7 @@ function mkworkit () {
153
153
154
154
touch " $proj_workit_path /postactivate" &&
155
155
touch " $proj_workit_path /postdeactivate" &&
156
- chmod +x " $proj_workit_path /postactivate" " $proj_workit_path /postdeactivate"
156
+ chmod +x " $proj_workit_path /postactivate" " $proj_workit_path /postdeactivate"
157
157
158
158
# If they passed a help option or got an error from virtualenv,
159
159
# the environment won't exist. Use that to tell whether
@@ -220,7 +220,7 @@ function workit () {
220
220
then
221
221
deactivate
222
222
fi
223
-
223
+
224
224
cd $PROJ_PATH
225
225
226
226
# Save the deactivate function from virtualenv
@@ -232,9 +232,9 @@ function workit () {
232
232
# # any settings made by the local postactivate first.
233
233
# virtualenvwrapper_source_hook "$VIRTUAL_ENV/bin/predeactivate"
234
234
# virtualenvwrapper_source_hook "$WORKON_HOME/predeactivate"
235
- #
235
+ #
236
236
# env_postdeactivate_hook="$VIRTUAL_ENV/bin/postdeactivate"
237
- #
237
+ #
238
238
# # Restore the original definition of deactivate
239
239
# eval "$virtualenvwrapper_saved_deactivate"
240
240
@@ -244,15 +244,15 @@ function workit () {
244
244
# virtualenvwrapper_source_hook "$env_postdeactivate_hook"
245
245
workit_source_hook "postdeactivate"
246
246
}'
247
-
247
+
248
248
workit_source_hook " postactivate"
249
- # workit_source_hook "$project/postactivate"
250
-
249
+ # workit_source_hook "$project/postactivate"
250
+
251
251
return 0
252
252
}
253
253
254
254
#
255
- # Set up tab completion. (Adapted from Arthur Koziel's version at
255
+ # Set up tab completion. (Adapted from Arthur Koziel's version at
256
256
# http://arthurkoziel.com/2008/10/11/virtualenvwrapper-bash-completion/)
257
- #
258
- compctl -g " ` show_workit_projects` " workit
257
+ #
258
+ compctl -g " ` show_workit_projects` " workit
0 commit comments