标签: git
我希望能够在克隆时立即将顶级git repo添加到PYTHONPATH。有没有办法做到这一点?我在repo的顶层有以下脚本:
#!/bin/bash topDir=`pwd` export PYTHONPATH=$topDir
我需要在顶层运行source configure。有没有办法在克隆repo时立即获得此功能,而不是每次克隆或登录时都必须运行source configure?
source configure
感谢。