Skip to content

Instantly share code, notes, and snippets.

@xsm1997
Created April 2, 2024 03:15
Show Gist options
  • Save xsm1997/e80c94950be2bcb31e0ea90f7e2d95bd to your computer and use it in GitHub Desktop.
Save xsm1997/e80c94950be2bcb31e0ea90f7e2d95bd to your computer and use it in GitHub Desktop.
Powershell profile (self-use)
Remove-Item alias:curl
Function start-conda() {
(& "C:\Users\kuma\scoop\apps\miniconda3\current\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
}
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment