Taking more my linux dots files like aproach.
This commit is contained in:
parent
44b23824ff
commit
a44f306337
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
*.py
|
|
@ -1 +0,0 @@
|
|||||||
choco install 7zip adwcleaner autohotkey autoruns bitwarden brave bulk-crap-uninstaller choco-cleaner choco-shortcuts-winconfig cpu-z crystaldiskinfo curl ddu discord eclipse-java-oxygen gpu-z hwinfo irfanview irfanviewplugins jre8 mailspring megasync microsoft-teams msiafterburner notepadplusplus openssh powershell-core qbittorrent quiterss rufus sdio sharex shutup10 speedtest spotify steam-client sumatrapdf teracopy unity-hub ventoy visualstudio-installer visualstudio2019buildtools visualstudio2019community vscode WhatsApp winaero-tweaker wiztree zoom -y
|
|
@ -1,3 +0,0 @@
|
|||||||
scoop install 7zip aria2 AtomicParsley bat ffmpeg fzf git hugo hugo-extended islc less lsd mpv-git neovim ninja nodejs-lts pcsx2 pshazz ripgrep ryzenadj sudo
|
|
||||||
|
|
||||||
# in administrator run scoop install SourceCodePro-NF
|
|
53
profile.ps1
53
profile.ps1
@ -2,6 +2,9 @@ using namespace System.Management.Automation
|
|||||||
|
|
||||||
Import-Module PSReadLine
|
Import-Module PSReadLine
|
||||||
|
|
||||||
|
# Setting up PATH
|
||||||
|
$env:Path = "$HOME/Bin/system/;" + "$env:Path"
|
||||||
|
|
||||||
$versionMinimum = [Version]'7.1.999'
|
$versionMinimum = [Version]'7.1.999'
|
||||||
|
|
||||||
if (($Host.Name -eq 'ConsoleHost') -and ($PSVersionTable.PSVersion -ge $versionMinimum))
|
if (($Host.Name -eq 'ConsoleHost') -and ($PSVersionTable.PSVersion -ge $versionMinimum))
|
||||||
@ -28,59 +31,17 @@ Set-PSReadlineOption -Color @{
|
|||||||
"Comment" = [ConsoleColor]::DarkCyan
|
"Comment" = [ConsoleColor]::DarkCyan
|
||||||
}
|
}
|
||||||
|
|
||||||
Import-Module posh-git
|
|
||||||
$GitPromptSettings.DefaultPromptPrefix.Text = "$([char]0x2192) " # arrow unicode symbol
|
|
||||||
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Green
|
|
||||||
$GitPromptSettings.DefaultPromptPath.ForegroundColor =[ConsoleColor]::Cyan
|
|
||||||
$GitPromptSettings.DefaultPromptSuffix.Text = "$([char]0x203A) " # chevron unicode symbol
|
|
||||||
$GitPromptSettings.DefaultPromptSuffix.ForegroundColor = [ConsoleColor]::Magenta
|
|
||||||
|
|
||||||
$GitPromptSettings.BeforeStatus.ForegroundColor = [ConsoleColor]::Blue
|
|
||||||
$GitPromptSettings.BranchColor.ForegroundColor = [ConsoleColor]::Blue
|
|
||||||
$GitPromptSettings.AfterStatus.ForegroundColor = [ConsoleColor]::Blue
|
|
||||||
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
|
|
||||||
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
|
|
||||||
$GitPromptSettings.DefaultPromptWriteStatusFirst = $true
|
|
||||||
$GitPromptSettings.BeforePath = '{'
|
|
||||||
$GitPromptSettings.AfterPath = '}'
|
|
||||||
$GitPromptSettings.BeforePath.ForegroundColor = 'Red'
|
|
||||||
$GitPromptSettings.AfterPath.ForegroundColor = 'Red'
|
|
||||||
|
|
||||||
function global:PromptWriteErrorInfo() {
|
|
||||||
if ($global:GitPromptValues.DollarQuestion) { return }
|
|
||||||
|
|
||||||
if ($global:GitPromptValues.LastExitCode) {
|
|
||||||
"`e[31m(" + $global:GitPromptValues.LastExitCode + ") `e[0m"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
"`e[31m! `e[0m"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$global:GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n$(PromptWriteErrorInfo)'
|
|
||||||
|
|
||||||
# Chocolatey profile
|
# Chocolatey profile
|
||||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
if (Test-Path($ChocolateyProfile)) {
|
if (Test-Path($ChocolateyProfile)) {
|
||||||
Import-Module "$ChocolateyProfile"
|
Import-Module "$ChocolateyProfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
function lsPretty
|
function dl {
|
||||||
{
|
|
||||||
lsd -A -L -l $args[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
function mklink
|
|
||||||
{
|
|
||||||
[string] $original = $args[0]
|
|
||||||
[string] $target = $args[1]
|
|
||||||
sudo New-Item -ItemType SymbolicLink -Path "$target" -Target "$original"
|
|
||||||
}
|
|
||||||
|
|
||||||
function download {
|
|
||||||
Set-Location ~\Downloads
|
Set-Location ~\Downloads
|
||||||
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]
|
||||||
}
|
}
|
||||||
|
|
||||||
Set-Alias -Name ls -Value lsPretty
|
New-Alias vi nvim-qt.exe
|
||||||
Set-Alias -Name ln -Value mklink
|
|
||||||
|
Invoke-Expression (&starship init powershell)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=18000 --slow-limit=16000
|
ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=19000 --slow-limit=15000
|
||||||
pause
|
pause
|
Loading…
Reference in New Issue
Block a user