Skip to content

Commit bde70a4

Browse files
authored
Update alias.md
1 parent 17ac612 commit bde70a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command/alias.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ A:运行cd依然会切换目录,运行ls依然会列出文件夹的内容;
108108
### 注意
109109

110110
1. 执行脚本时请注意:
111-
1. 使用 `source` 命令执行的bash脚本如果执行了 `alias``unalias` 命令,那么有可能会对终端环境的别名设置产生影响;终端环境的别名设置也可能改变运行结果;
112-
2. 通过 `sh` 方式调用的 bash 脚本或直接运行当前用户有执行权限的脚本不受终端环境的别名影响。
111+
- 使用 `source` 命令执行的bash脚本如果执行了 `alias``unalias` 命令,那么有可能会对终端环境的别名设置产生影响;终端环境的别名设置也可能改变运行结果;
112+
- 通过 `sh` 方式调用的 bash 脚本或直接运行当前用户有执行权限的脚本不受终端环境的别名影响。
113113
2. 删除别名,请查看`unalias`命令。
114114
3. 建议您不要对 `mv cp rm` 等命令的别名设置危险的 `-f` 选项,比如 `alias rm='rm -f'`
115115
4. 需要注意别名是否和其他命令有冲突的情况。

0 commit comments

Comments
 (0)