在 main.py 中修正用户目录切换路径,确保兼容性;清理多余空行

This commit is contained in:
2025-04-17 15:02:11 +08:00
Unverified
parent 12e26fefc8
commit e3f63871bb

View File

@@ -81,7 +81,7 @@ def pseudo_zsh():
print(f"存储: {used_disk}GB / {total_disk}GB ({disk_usage}%)")
print("-" * 40)
subprocess.run(f"cd /{username}/", shell=True) # 切换到用户目录
subprocess.run(f"cd /Users/{username}/", shell=True) # 切换到用户目录
while True:
try: