From 0b71b42d892e2f0083de6e0c07fe9e1af7f3beaf Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Fri, 20 Jan 2023 14:21:50 +0100 Subject: [PATCH] Generic update. --- profile.ps1 | 31 +++++++++++++++++++++++++++++++ ryzenadj-games/shatterline.cmd | 2 ++ ryzenadj-games/splitgate.cmd | 2 -- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 ryzenadj-games/shatterline.cmd delete mode 100644 ryzenadj-games/splitgate.cmd 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