Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function prompt() {
  2. if ($Env:CONDA_PROMPT_MODIFIER) {
  3. (Get-Host).UI.RawUI.WindowTitle = "PS " + $pwd + ">"
  4.  
  5. $pwd_last_dir_index = $pwd.ProviderPath.LastIndexof("\") + 1
  6. $current_dir = $pwd.ProviderPath.Remove(0, $pwd_last_dir_index)
  7. $Env:CONDA_PROMPT_MODIFIER + $env:UserName + "@" + $env:COMPUTERNAME + ":" + $current_dir + "> "
  8.  
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement