Skip to content

Instantly share code, notes, and snippets.

@jgardner04
Last active August 26, 2017 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgardner04/2f848eec0972dd6062423a0f5af88b4b to your computer and use it in GitHub Desktop.
Save jgardner04/2f848eec0972dd6062423a0f5af88b4b to your computer and use it in GitHub Desktop.
PowerShell $Profile
Import-Module posh-docker
try { $null = gcm pshazz -ea stop; pshazz init 'default' } catch { }
# ================
# Alias
# ================
function HOME {
Set-Location $HOME
Get-ChildItem
}
Set-Alias ~ HOME
function BACK{
Set-Location ..
Get-ChildItem
}
Set-Alias .. BACK
function BACK2{
Set-Location ../..
Get-ChildItem
}
Set-Alias ..2 BACK2
function GITHOME {
Set-Location J:\GitHub
Get-ChildItem
}
Set-Alias gogit GITHOME
function NEWCD {
Set-Location $args[0]
Get-ChildItem
}
Set-Alias cd NEWCD -Option AllScope
# =======================
# Functions
# =======================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment