You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I was working with a Windows machine that I accessed over SSH, and I realized that the hostname wasn't showing up in the commandline as it should. This seems to be caused by the P9K_SSH flag not being set to 1 for SSH in WSL. I did a quickfix in my zshrc file that looks like this
if [[ "$(cmd.exe /c 'echo %SSH_CLIENT%'2>/dev/null | sed $'s/\r//'| grep ' 22$')" ]];thenexport P9K_SSH=1
fi
It pretty much runs cmd and checks if the SSH_CLIENT flag is set for Windows, and if that is the case just sets P9K_SSH manually.
I couldn't figure out where that flag is set by P10K, otherwise I would have solved it and made a pull request. Hope this was at least a bit relevant
The text was updated successfully, but these errors were encountered:
Hi. I was working with a Windows machine that I accessed over SSH, and I realized that the hostname wasn't showing up in the commandline as it should. This seems to be caused by the P9K_SSH flag not being set to 1 for SSH in WSL. I did a quickfix in my zshrc file that looks like this
It pretty much runs cmd and checks if the SSH_CLIENT flag is set for Windows, and if that is the case just sets P9K_SSH manually.
I couldn't figure out where that flag is set by P10K, otherwise I would have solved it and made a pull request. Hope this was at least a bit relevant
The text was updated successfully, but these errors were encountered: