Files
dotfiles/bash/.add-on
FlintyLemming 6af4aa5f6d add bash config
2025-12-17 17:20:12 +08:00

14 lines
344 B
Plaintext

## 更新配置
dotu() {
# 使用 () 包裹命令会在子进程中运行,执行完后当前终端路径不会改变
(
cd "$HOME/.flinty" || exit
if git pull; then
echo "Git updated."
fi
)
# 在主进程刷新配置
source ~/.bash_profile
echo "Config reloaded successfully!"
}