Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function prompt() {
- if ($Env:CONDA_PROMPT_MODIFIER) {
- (Get-Host).UI.RawUI.WindowTitle = "PS " + $pwd + ">"
- $pwd_last_dir_index = $pwd.ProviderPath.LastIndexof("\") + 1
- $current_dir = $pwd.ProviderPath.Remove(0, $pwd_last_dir_index)
- $Env:CONDA_PROMPT_MODIFIER + $env:UserName + "@" + $env:COMPUTERNAME + ":" + $current_dir + "> "
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement