在“文档”目录下新建“Microsoft.PowerShell_profile.ps1”,
#只显示当前文件夹名称
function prompt {
$p = pwd|Split-Path -Leaf
"$p :"
}
#下边是conda的配置命令
(& "C:\Users\hello\anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
标签:function,修改,conda,Win10,提示符,powershell
From: https://www.cnblogs.com/hellozhangjz/p/17464329.html