diff --git a/profile.ps1 b/profile.ps1 index aa2f762..fcf5560 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -32,6 +32,27 @@ Set-PSReadlineOption -Color @{ "Comment" = [ConsoleColor]::DarkCyan } +$OnViModeChange = [scriptblock]{ + if ($args[0] -eq 'Command') { + # Set the cursor to a blinking block. + Write-Host -NoNewLine "`e[1 q" + } + else { + # Set the cursor to a blinking line. + Write-Host -NoNewLine "`e[5 q" + } +} + +Set-PsReadLineOption -EditMode Vi # -ViModeIndicator Cursor +Set-PSReadLineOption -ViModeIndicator Script -ViModeChangeHandler $OnViModeChange + +# Get fzf on drugs +Import-Module PSFzf + +# replace 'Ctrl+t' and 'Ctrl+r' with your preferred bindings: +Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' +Set-PsFzfOption -EnableAliasFuzzyScoop -EnableAliasFuzzyKillProcess + # Chocolatey profile $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" if (Test-Path($ChocolateyProfile)) { @@ -43,6 +64,16 @@ function dl { aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none $args[0] } +function ls_pretty { + lsd -1 $args +} + +function profile { + nvim C:\Users\Crony\Documents\Repos\win-scipts\profile.ps1 +} + New-Alias vi nvim-qt.exe +# Remove-Alias ls +# New-Alias ls ls_pretty Invoke-Expression (&starship init powershell) diff --git a/ryzenadj-games/shatterline.cmd b/ryzenadj-games/shatterline.cmd new file mode 100644 index 0000000..b3f3606 --- /dev/null +++ b/ryzenadj-games/shatterline.cmd @@ -0,0 +1,2 @@ +@echo off +ryzenadj --slow-time=60 --vrmmax-current=42000 --tctl-temp=75 --stapm-limit=20000 --stapm-time=1000 --fast-limit=20000 --slow-limit=20000 --max-performance \ No newline at end of file diff --git a/ryzenadj-games/splitgate.cmd b/ryzenadj-games/splitgate.cmd deleted file mode 100644 index 561c9f9..0000000 --- a/ryzenadj-games/splitgate.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -ryzenadj --slow-time=60 --vrmmax-current=48000 --tctl-temp=75 --stapm-limit=18000 --stapm-time=1000 --fast-limit=18000 --slow-limit=18000 --max-performance \ No newline at end of file