Skip to content

Instantly share code, notes, and snippets.

@strayge
Last active April 28, 2022 11:08
Show Gist options
  • Save strayge/93180f2a1220c929c940d619fcc2b014 to your computer and use it in GitHub Desktop.
Save strayge/93180f2a1220c929c940d619fcc2b014 to your computer and use it in GitHub Desktop.
Save to C:\Users\<user>\Documents\WindowsPowerShell
function prompt {
$p = Split-Path -leaf -path (Get-Location)
"PS $p> "
}
remove-item alias:ls
remove-item alias:curl
New-Alias curl "$env:USERPROFILE\scoop\shims\curl.exe"
remove-item alias:wget
New-Alias wget "$env:USERPROFILE\scoop\shims\wget.exe"
function ll { & "$env:USERPROFILE\scoop\shims\ls.exe" -lha $args }
function dc {
$exe = $(which docker-compose);
& $exe $args
}
function venv {
$path = (Get-Item .).FullName;
& $( $path + "\venv\Scripts\Activate.ps1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment