Archit Modi

发表的评论

当您运行脚本(例如 "./alias.sh")时,它会在子 shell 中执行。您需要使用 "source alias.sh" 运行它,以便脚本所做的更改应用于当前环境。

source alias.sh 或 . alias.sh (点 alias.sh)

© . All rights reserved.