Skip to content

Commit 6efce08

Browse files
committed
the bash or ps1 upgrade
1 parent c90e4d9 commit 6efce08

File tree

3 files changed

+59
-45
lines changed

3 files changed

+59
-45
lines changed

Temp/bash/bash_or_ps1.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# bash or ps1 命令
2+
3+
- [一. 删除缓存](#一-删除缓存)
4+
- [1.1. pyc and pycache](#11-pyc-and-pycache)
5+
- [1.2. 扩展目录](#12-扩展目录)
6+
- [1.2.1. build](#121-build)
7+
- [1.2.2. com.dvsnier.*.egg-info](#122-comdvsnieregg-info)
8+
- [1.2.3. dist](#123-dist)
9+
- [1.2.4. log](#124-log)
10+
11+
## 一. 删除缓存
12+
13+
### 1.1. pyc and pycache
14+
15+
```bash
16+
## THE DELETE FILES
17+
find . -name '*.pyc' -delete
18+
## THE DELETE DIRECTORY
19+
find . -type d -name __pycache__ -exec rm -r {} +
20+
```
21+
22+
### 1.2. 扩展目录
23+
24+
推荐删除扩展目录:
25+
26+
- `build`
27+
- `com.dvsnier.*.egg-info`
28+
- `dist`
29+
- `log`
30+
31+
#### 1.2.1. build
32+
33+
```bash
34+
# ./build/*
35+
find ./build -path "*" ! -name "build" -delete
36+
```
37+
38+
#### 1.2.2. com.dvsnier.*.egg-info
39+
40+
```bash
41+
# ./src/com.dvsnier.*.egg-info
42+
find ./src -path "*com.dvsnier*" -delete
43+
# find ./src -path "*com.dvsnier.*" -type d -exec rm -r {} +
44+
# find ./src -path "*com.dvsnier.*" -type f -delete
45+
```
46+
47+
#### 1.2.3. dist
48+
49+
```bash
50+
# ./dist/*
51+
find ./dist -path "*" ! -name "dist" -delete
52+
```
53+
54+
#### 1.2.4. log
55+
56+
```bash
57+
# ./out/log/*
58+
find ./out/log -path "*" ! -name "log" -delete
59+
```

Temp/bash/cmd.md

Lines changed: 0 additions & 45 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)