Skip to content

Instantly share code, notes, and snippets.

@vadim-kovalyov
Created March 16, 2020 19:44
Show Gist options
  • Save vadim-kovalyov/9d047da2f9c10bc3af227f2fe7f31f2f to your computer and use it in GitHub Desktop.
Save vadim-kovalyov/9d047da2f9c10bc3af227f2fe7f31f2f to your computer and use it in GitHub Desktop.
PowerShell profile
function global:up { pushd ..\$args }
function global:up1 { pushd ..\$args }
function global:up2 { pushd ..\..\$args }
function global:up3 { pushd ..\..\..\$args }
function global:up4 { pushd ..\..\..\..\$args }
function global:up5 { pushd ..\..\..\..\..\$args }
function global:up6 { pushd ..\..\..\..\..\..\$args }
function global:up7 { pushd ..\..\..\..\..\..\..\$args }
function global:up8 { pushd ..\..\..\..\..\..\..\..\$args }
function global:up9 { pushd ..\..\..\..\..\..\..\..\..\$args }
Set-Alias .. up1 -scope Global
Set-Alias ... up2 -scope Global
Set-Alias .... up3 -scope Global
Set-Alias ..... up4 -scope Global
Set-Alias ...... up5 -scope Global
Set-Alias ....... up6 -scope Global
Set-Alias ........ up7 -scope Global
Set-Alias ......... up8 -scope Global
Set-Alias .......... up9 -scope Global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment