Skip to content

Instantly share code, notes, and snippets.

@MertSenel
Last active August 22, 2020 02:34
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 MertSenel/2ce9e0817d1895890fed01a68b385d7d to your computer and use it in GitHub Desktop.
Save MertSenel/2ce9e0817d1895890fed01a68b385d7d to your computer and use it in GitHub Desktop.
Sample PowerShell Profile.ps1 file to load your custom scripts and configure PSReadline module for auto-complete features
# 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
#Custom functions location
$Path = "C:\Users\Mert\source\MertPSFunctions\"
Get-ChildItem -Path $Path -Filter *.ps1 |ForEach-Object {
. $_.FullName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment