Skip to content

Instantly share code, notes, and snippets.

@varunswarup0
Created April 25, 2020 17:12
Show Gist options
  • Save varunswarup0/d557f60b7a42ab300058533a84c27482 to your computer and use it in GitHub Desktop.
Save varunswarup0/d557f60b7a42ab300058533a84c27482 to your computer and use it in GitHub Desktop.
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
# New-Alias <alias> <aliased-command>
New-Alias cl clear
function co {
code .
}
function op {
ii .
}
function yi {
yarn install
}
function ys {
yarn start
}
function opera {
ii $PROFILE.CurrentUserAllHosts
}
function showName {
(Get-ChildItem).BaseName
}
function sh {
Get-ChildItem -Name
}
function show {
Get-ChildItem | Format-Wide -Column 2
}
function pushHard {
git push --set-upstream origin master
}
function ignore {
git checkout -f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment