Generic update.
This commit is contained in:
parent
dac1a7e721
commit
0b71b42d89
31
profile.ps1
31
profile.ps1
@ -32,6 +32,27 @@ Set-PSReadlineOption -Color @{
|
|||||||
"Comment" = [ConsoleColor]::DarkCyan
|
"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
|
# Chocolatey profile
|
||||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
if (Test-Path($ChocolateyProfile)) {
|
if (Test-Path($ChocolateyProfile)) {
|
||||||
@ -43,6 +64,16 @@ function dl {
|
|||||||
aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none $args[0]
|
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
|
New-Alias vi nvim-qt.exe
|
||||||
|
# Remove-Alias ls
|
||||||
|
# New-Alias ls ls_pretty
|
||||||
|
|
||||||
Invoke-Expression (&starship init powershell)
|
Invoke-Expression (&starship init powershell)
|
||||||
|
2
ryzenadj-games/shatterline.cmd
Normal file
2
ryzenadj-games/shatterline.cmd
Normal file
@ -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
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user