cross-platform

This commit is contained in:
2022-08-30 14:08:00 -07:00
parent 9e619c64b8
commit 54f30a3c4a
13 changed files with 942 additions and 10 deletions

View File

@@ -0,0 +1,35 @@
# Refresh PATH variable
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# Other env vars
$env:NEOVIM_CONFIG = $env:LOCALAPPDATA+"/nvim/init.vim"
Import-Module -Name Terminal-Icons
Import-Module posh-alias
Import-Module -Name PoshDirTitle
Import-Module oh-my-posh
Set-PoshPrompt -Theme stelbent.minimal
# Set-PoshPrompt -Theme star
# Set-PoshPrompt -Theme ~/.turtlebasket_omp2.json
Remove-Alias rm
Remove-Alias cp
Remove-Alias mv
Remove-Alias cat
Set-Alias vim gvim
# Set-Alias vim nvim-qt
Set-Alias nb 'C:\Program Files\Git\bin\bash.exe'
Set-Alias wb bash
Add-Alias lsu 'ls.exe --color'
Set-Alias l dir
Set-Alias d dir
# Path refreshing
Add-Alias refresh '$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User"); echo "Refreshed PATH."'
Set-PSReadLineOption -EditMode Emacs
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
# Invoke-Expression (&starship init powershell)