-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Powershell Hook语句似乎应该放$PROFILE文件入口处 #99
Comments
应该是把你自定义的prompt函数覆盖了, 包装一下你初始的prompt函数应该就可以. vfox/internal/shell/powershell.go Lines 36 to 41 in eef222d
有兴趣提个pr修改一下吗 😄 |
我试试,现在直接设置原prompt,但是无法将 |
直接把原来的return删掉,不用管他, 这样试试哈哈哈 $originalPrompt = prompt
function prompt {
// logic .....
&$originalPrompt
} |
#101 尝试修复了一下,第一次给开源项目提PR,还请您多多赐教 |
Fixed by #101 |
Version
The version you are currently using
VersionFox version 0.2.4
OS
macOS、Linux、Windows
Windows
Question Description
A clear and concise description of what the question is.
如果将
Invoke-Expression "$(vfox activate pwsh)"
放在$PROFILE
最后,将会导致自定义的pwsh其他插件都失效The text was updated successfully, but these errors were encountered: