SHARE
TWEET

Untitled

a guest Jul 17th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top