Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
probabilityzero committed Jan 23, 2025
1 parent 6189f98 commit 16fe2f8
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 37 deletions.
Empty file added README.md
Empty file.
13 changes: 13 additions & 0 deletions Utilities/ScoopShortcuts.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function spi {
param (
[string]$appName
)
scoop install $appName -g
}

function spu {
param (
[string]$appName
)
scoop uninstall $appName
}
71 changes: 42 additions & 29 deletions Microsoft.PowerShell_profile.ps1 → profile.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
oh-my-posh init pwsh --config "C:\Users\prime\Documents\PowerShell\themes\synth.omp.json" | Invoke-Expression

Remove-Alias -Name r -ErrorAction SilentlyContinue
oh-my-posh init pwsh --config "$env:PWSH_DIR\themes\synth.omp.json" | Invoke-Expression

function e {
param (
Expand All @@ -17,51 +15,44 @@ function ... {
cd ...
}

function sw {
wsl --shutdown

function ~ {
cd ~
}

function dd {
Set-Location -Path "D:\Downloads"
}

function ed {
Set-Location -Path "E:\Downloads"
}

function pg {
Set-Location -Path "E:\space\playground"
}

function repo {
function er {
Set-Location -Path "E:\archive\repositories"
}

function space {
function es {
Set-Location -Path "E:\space"
}


function ll {
Get-ChildItem -Force -Format List
function ev {
Set-Location -Path "E:\space\alpha-v"
}

function s {
param (
[string]$appName
)
scoop install $appName -g

function sw {
wsl --shutdown
}

function pf {
notepad $PROFILE
}


function ~ {
cd ~
}

function de {
Set-Location -Path "E:\Downloads"
}

function dd {
Set-Location -Path "D:\Downloads"
}

function c {
Clear-Host
}
Expand All @@ -70,6 +61,10 @@ function h {
Get-History
}

function ll {
Get-ChildItem -Force -Format List
}

function size {
Get-ChildItem -Directory | ForEach-Object {
$folderSize = (Get-ChildItem -Path $_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum
Expand All @@ -80,6 +75,24 @@ function size {
} | Sort-Object -Property Size -Descending
}

function jl {
param (
[string]$option = ' '
)
jupyter notebook --no-browser $option
}

function cb {
pwsh.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda\shell\condabin\conda-hook.ps1'; conda activate 'C:\ProgramData\Anaconda'; . $profile"
}

# Utilities
. "C:\Users\prime\Documents\PowerShell\Utilities\GitShortcuts.ps1"
. "$env:PWSH_DIR\Utilities\GitShortcuts.ps1"
. "$env:PWSH_DIR\Utilities\ScoopShortcuts.ps1"

# Import the Chocolatey Profile that contains the necessary code to enable
# tab-completions to function for `choco`.
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
15 changes: 7 additions & 8 deletions themes/synth.omp.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,43 +62,43 @@
"npm_icon": " <#cc3a3a>\ue5fa</> ",
"yarn_icon": " <#348cba>\ue6a7</>"
},
"template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
"template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"style": "powerline",
"type": "node"
},
{
"foreground": "#ffffff",
"template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "java"
},
{
"foreground": "#0d6da8",
"template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}",
"template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "dotnet"
},
{
"foreground": "#06aad5",
"template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "go"
},
{
"foreground": "#925837",
"template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"template": "{{ if .Full }}\ue7a8 {{ .Full }}{{ end }} ",
"style": "powerline",
"type": "rust"
},
{
"foreground": "#055b9c",
"template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "dart"
},
{
"foreground": "#ce092f",
"template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
"template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "angular"
},
Expand Down Expand Up @@ -142,7 +142,6 @@
"foreground": "#ffffff",
"template": "\uf308 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}",
"style": "powerline",
"trailing_diamond": "\ue0b4",
"type": "kubectl"
},
{
Expand Down

0 comments on commit 16fe2f8

Please sign in to comment.