常用shell脚本
Whisper Lv5

spider conda环境

1
2
3
cd /d/pythonPros/mytools
conda activate 3.10
pipenv run python manage.py runserver localhost:5001

push所有项目

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
for file in /d/pythonPros/*
do
if [ -d "$file" ]
then
cd $file
pwd
echo "进入目录 $file"
git status
git add .
git commit -m "push from home."
git push
elif [ -f "$file" ]
then
echo "$file is file"
fi
done
echo 按任意键继续
read -n 1
echo 继续运行