From: Edward Delaporte Date: Wed, 12 Jan 2022 16:28:21 +0000 (-0600) Subject: Merge branch 'main' of github.com:edthedev/dotfiles into main X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/47800cb6fbf388cecc89716adbe4c59adb9f134d?hp=56611982b910b5a645aa4ee7de7c784edd34f68e Merge branch 'main' of github.com:edthedev/dotfiles into main --- diff --git a/.gitignore b/.gitignore index f52b61d..6154bc4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,6 @@ OneTrust.ipynb *.*~ *.swp vimrc~ +plug.vim -node_modules \ No newline at end of file +node_modules diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index f6ee52f..6a1ab94 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -15,7 +15,7 @@ if(-Not $IsWindows) { $IsWindows = ($env:OS -eq "Windows_NT") } -$env:src = "~" +$env:src = "~\src" if($IsWindows){ Write-Host "***Is Windows***" $env:src = "c:\src" @@ -29,6 +29,8 @@ if($IsWindows){ $ENV:PATH+=";C:\bin\x16emu" # Package management is nice. $ENV:PATH+=";C:\Program Files (x86)\GnuWin32\bin" # GNU Utils - i.e. rm $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. + $ENV:PATH+=";$env:src\x16-demo\tools" # x16 python tools + $ENV:PATH+=";$env:src\chart" # command line chart utility edthedev\chart } else { $ENV:PATH+=":$HOME/x16/x16-emulator" # x16 Emulator diff --git a/psmodules/drivespace.psm1 b/psmodules/drivespace.psm1 index 19fdc5e..342311b 100644 --- a/psmodules/drivespace.psm1 +++ b/psmodules/drivespace.psm1 @@ -5,7 +5,10 @@ Find 10 largest files on the C drive. #> function Show-LargeFiles() { - Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName + param( + [int]$Max=10 + ) + Get-ChildItem c:\ -r| sort -descending -property length | select -first $Max name, Length, FullName } <#