Commits

Anonymous committed 30d43c8

Added cdlib command

Comments (0)

Files changed (1)

     cd $PROJECT_ROOT/$1
 }
 
+# Change directory to project lib directory
+function cdlib() {
+    _verify_project_root || return 1
+
+    cd $PROJECT_ROOT/lib/$1
+}
+
 # Install dependencies for a python environment (first argument);
 # the file with the dependencies should be in the requirements
 # directory and should have the format 'libs-<environment>.txt'
     COMPREPLY=($(cdroot && compgen -d -- "${2}"))
 }
 
+_cdlib_complete() {
+    _verify_project_root || return 1
+
+    COMPREPLY=($(cdlib && compgen -d -- "${2}"))
+}
+
 _cdjango_complete() {
     _verify_django_project || return 1
 
 }
 
 complete -o nospace -F _cdroot_complete -S/ cdroot
+complete -o nospace -F _cdlib_complete -S/ cdlib
 complete -o nospace -F _cdjango_complete -S/ cdjango
 complete -F _django_projects_complete djenv
 complete -F _pipup_complete pipup