Skip to content

Commit 000b185

Browse files
committed
feat: 增加 tosource 快捷命令
1 parent c42194e commit 000b185

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.bash_aliases.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ todpe() {
2424
cd $(dirname $(readlink -f "${DPE_COMPOSE}"))
2525
}
2626

27+
tosource() {
28+
cd $DPE_SOURCE
29+
}
30+
2731
tophp() {
2832
if [[ $# -lt 1 ]]; then
2933
local version=php81

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ root@08240e17170e:/www# composer install
287287
```
288288
# 进入宿主机 docker-php-env 目录
289289
$ todpe
290+
# 进入宿主机 DIR_SOURCE 目录
291+
$ tosource
290292
291293
# 进入 php81 容器,自动识别挂载目录中的相对路径
292294
$ tophp

0 commit comments

Comments
 (0)