# Scripts in this $PROFILE folder are added to the PATH $env:path += ";$(Split-Path -Parent $MyInvocation.MyCommand.Path)" function prompt { $prompt = "> " $current_user = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() ) If ($current_user.IsInRole( [Security.Principal.WindowsBuiltinRole]::Administrator )) { $prompt = "Admin$prompt" } $prompt } function install_scoop { # You can read the script before executing it here: # https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1 Invoke-RestMethod get.scoop.sh | Invoke-Expression # (un)install docs: https://github.com/ScoopInstaller/Install } function install_bleachbit { scoop bucket add extras scoop install bleachbit }