mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-16 01:01:36 +00:00
adjust folder structrure
This commit is contained in:
1
deprecated/powershell/Microsoft.PowerShell_profile.ps1
Normal file
1
deprecated/powershell/Microsoft.PowerShell_profile.ps1
Normal file
@ -0,0 +1 @@
|
||||
. $env:USERPROFILE\.config\powershell\user_profile.ps1
|
25
deprecated/powershell/user_profile.ps1
Normal file
25
deprecated/powershell/user_profile.ps1
Normal file
@ -0,0 +1,25 @@
|
||||
# oh-my-posh theme
|
||||
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/velvet.omp.json" | Invoke-Expression
|
||||
|
||||
# PSReadLine
|
||||
Set-PSReadLineOption -EditMode Emacs
|
||||
Set-PSReadLineOption -BellStyle None
|
||||
Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar
|
||||
Set-PSReadLineOption -PredictionSource History
|
||||
|
||||
# import module
|
||||
# Install-Module -Name Terminal-Icons
|
||||
Import-Module -Name Terminal-Icons
|
||||
|
||||
# Alias
|
||||
Set-Alias -Name vim -Value nvim
|
||||
Set-Alias ll ls
|
||||
Set-Alias g git
|
||||
Set-Alias grep findstr
|
||||
Set-Alias tig 'C:\Program Files\Git\usr\bin\tig.exe'
|
||||
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
|
||||
|
||||
# Environmental variables
|
||||
# nvim xdg path. :h xdg
|
||||
Set-Content -Path env:XDG_CONFIG_HOME -Value "$env:USERPROFILE\.config"
|
||||
Set-Content -Path env:XDG_DATA_HOME -Value "$env:USERPROFILE\.local\share"
|
Reference in New Issue
Block a user