Commit Graph

101 Commits

Author SHA1 Message Date
lksz ac10608cc0 =Fixed oh-my-posh style verification for non Windows systems 2021-04-25 13:03:16 -04:00
lksz 499a86baa6 Added #TotalTime# option to Show-Progress Status 2021-04-22 16:51:42 +00:00
lksz 2f317c53f3 Formatting and agility
skip scoop in VSCode
Fix CovertFrom-TimeSpan to handle series and FieldName
2021-04-20 23:43:17 +00:00
lksz c9d13f5c4d package defintion improvements
Added CmdletExists and AppExeExists conditions
Cleanup of existing package description files
2021-04-16 17:07:00 +00:00
lksz 2b51f37cb7 Merge branch 'master' of https://code.lksz.me/lksz/PowerShell_Scripts 2021-04-16 15:45:54 +00:00
lksz 870887a577 Progress improvements + Waiting with progress 2021-04-16 15:45:36 +00:00
lksz b1f612828f Style update for Non-ANSI environments 2021-04-16 15:44:50 +00:00
lksz@work b303fa0f88 Cleanup of basics to work in Win + fixes to bugs 2021-04-07 16:04:46 -04:00
lksz b558edacd9 Merge branch 'master' of https://code.lksz.me/lksz/PowerShell_Scripts 2021-04-04 14:47:08 -04:00
lksz 8a93a0f123 git related improvements and implementations
+ Get-GitRepo - Clone or update a repo, with tag support
+ Get-GitHubReleaseTag - Grab tag from latest release page
+ Refresh-GitRepo - Stage all possible changes, discarding any
previously stageds changes
= GitHub repo is now git repo - as some code isn't GitHub specific
+ cat Alias for Get-Content
= Get-PossiblArguments improvement
= Invoke-WebDownload fix
= dcedit fixing bad argument processing
2021-04-04 14:42:29 -04:00
lksz 1c4bf033fb Added Pause and RandomString + some minor fixes 2021-04-02 22:58:01 +00:00
lksz 91199f7bcf =Testing for old version of PowerShellGet 2021-03-26 18:10:18 +00:00
lksz aa44d120e4 dcdown repair 2021-03-25 09:53:21 -04:00
lksz d441492cf0 Added DockerCompose completion + fixes 2021-03-23 01:06:49 -04:00
Gal Szkolnik b5b5702b17 Join-String dependency fix + Get-Path cleanup
If Join-String is missing, the 'string' module, if not existing will be
installed and then imported.
Get-Path produced an error when used with wildcard, fixed it with string
substituation.
Get-Path would output wildcard string when expansion didn't match, now
output will be blank.
2021-03-06 18:10:28 -05:00
lksz 4da3726760 Some modifications
Style default to slim theme
config updated to include bashrc
dcup, dcdown to work in parallel (supported by dco)
2021-02-22 14:58:49 -05:00
Gal Szkolnik c8869ae393 dco should handle yaml extensions on top of yml 2021-02-20 13:09:38 -05:00
lksz 22d1b7a1bc Updated Style and config for oh-my-posh v3 2021-02-19 20:03:48 -05:00
lksz 6d2a23ae04 Modify Setup, Path, added Get-MyModules
+ base/Get-MyModules added
* base/profile.d/Test-MyModules modified to use Get-MyModules
* Setup-Profile modified so that sudo witll preserve environment
* Get-Path fixed bug introduced in last commit, Get-Path would fail when
  file to be edited didn't exist
2021-02-19 19:22:46 -05:00
lksz 5dae2a2af5 Modified Get-Path with additonal switch -Expand
* Added -Expand to Get-Path
* Modified Edit-TextFile to utilize new -Expand switch
2021-02-19 15:19:42 -05:00
lksz 0e986cfaa7 Module loading upgrade
This all started because I wanted the UnixCompleters module and
initialization to move to the base.linux package.

* MyConfig.class modified to load from all modules
* Test-MyModules suppress empty entries
* removed unix entries from base/src/modules.json
+ created base.linux/src/modules.json
2021-02-18 12:27:50 -05:00
lksz 6c19a53518 Added zsys to myconfig 2021-02-18 11:00:27 -05:00
lksz f7df96c55d New commands + fixes
+ Get-Mount (mounts retuned as objects for easy filtering)
+ Get-RandomMacAddress (for easy MAC Address generation)
* Get-Path modified to resolve ~, also made it work with pipeline input
* Edit-TextFile streamlined by using modified Get-Path
* Added emacs and spacemacs to MyConfig
* dcup - attempt at cleaner output
+ added docker/profile.d/env.ps1 for default docker vars
2021-02-18 10:53:32 -05:00
lksz f947b0b3b4 Improvements and bug fixes
dcl, dcll and dcre were brokeen, fixed that
Invoke-WebDownload given a URL, automatically deduce the file file.
Get-GitHubReleaseAssets - Grab URLs from a GitHub release page.
Invoke-DockerCompose updated to display progress while waiting on
background jobs.
2021-02-10 18:26:48 -05:00
Gal Szkolnik 53226f09b4 Moved logic to szcoop repo 2021-02-07 14:02:50 -05:00
Gal Szkolnik 1672c384ad Package creation template and scoop package
Set-MyPackage has a template option that will create skelaton content
when a new package is created.
Add scoop package, so that refresh will occur automatically on
powershell launch if it hasn't been run in the past 3 hours.
2021-02-07 13:32:23 -05:00
Gal Szkolnik 4ba9a69fb9 dcup: single project-dir, no bg ('&') cmds 2021-02-03 20:03:39 -05:00
lksz e2fe1a8f06 Fixes
+ ConvertTo-Zip: Added -MuteSkipped
* sz-df sorting fixed + -PassThru added, defaulting output to
  Format-Table unless -PassThru switch is specified which will output
  the objects raw.
* Edit-DockerCompose fixed duplicate 'AdditionalFiles'
* dcup and dcreup fixed: added --remove-orphans
2021-02-03 19:59:30 -05:00
Gal Szkolnik 3d57308616 =Fixed sz-df for better output 2021-02-03 16:54:38 -05:00
lksz 449a297d8b Main ConvertTo-Zip with a few additions and fixes
+ ConvertTo-Zip, originally created to mass convert CBRs to CBZs
  It will only be avilable when 7-zip is available (7z executable)
  Features: Shows progress, can work recursively (preserving folder
  structure), knows to move completed files.
+ Show-Progress: Shorthand for common progress related output
  manipulation (calculation of completion based on time, or item count,
  and verbose output if needeed)
+ ConvertFrom-TimeSpan: string output from timespan, used by
  Show-Progress
+ Get-Path updated to be more efficient (no need for exception handling)
+ PathProcessingFunctions loads a utility function GetShellSafePath
* Repair-Permissions added some status reporting
2021-01-29 18:26:39 -05:00
lksz d1e24fa7eb dcc -OnlyTest switch now works 2021-01-23 22:07:36 -05:00
lksz 4318bfc7a8 Minor fix to Edit-DockerCompose
dcedit additional files would attempt even if not supplied
2021-01-23 21:46:48 -05:00
lksz 6549d8683d Some general shortcuts
DockerCompose, Edit AdditionalFiles shortcut #/, #tr and #lsi created
Set-MyPackage -LocalUser / -LocalHost shorthand.
2021-01-23 21:25:39 -05:00
lksz 0b644b7fdd dco commands will run sequential with single projs 2021-01-20 22:31:34 -05:00
lksz 9dca986b74 Profile update/fixes
Fixed Get-PowerShellPath - was failing when a zombie process was alive
Fixed Remove-Item failing when setting up profile.
2021-01-19 10:17:23 -05:00
lksz b9c429ece4 Fixed Edit-DockerCompose to treat multiple files 2021-01-18 19:04:39 -05:00
lksz 1b62fd1114 Updated Pull-ViaAnsible to allow Path
it's also a OneLiner output by default
2021-01-15 02:24:53 -05:00
Gal a7ac392886 Fixes and completion of Invoke-DockerCompose 2021-01-15 01:56:10 -05:00
lksz dcc9113cda DockerCompose commands refactoring
All dc... commands are now based on Invoke-DockerCompose.
dco is aliased to Invoke-DockerCompose.
dco_ is aliased to the docker-compose binary.
'&' and '!' shorthand introduced to dco to execut in bg as job and wait
for all bg jobs to complete respectively.
2021-01-15 01:15:54 -05:00
lksz c453e5bdea Fixing the shell-loading-snippets and the editor 2021-01-14 21:31:31 -05:00
lksz 3f9303bad2 moved Setup-Profile back to root
This will preserve the https://lksz.me/pwsz link from breaking.
2021-01-14 19:23:51 -05:00
Gal Szkolnik c552452ac4 Added support to Dockerfile and env in dcedit 2021-01-14 17:24:29 -05:00
lksz b8c343d908 myconfig updated
better handling of vimrc
fix: shrc duplicate conflicting entries
2021-01-14 11:50:36 -05:00
lksz 24b5e928d0 docker and docker-compose commands
Invoke-DockerCompose which will be the basis of all other future dc
prefixed commands (which currently contains to much copy-pasted code)
2021-01-13 01:02:37 -05:00
Gal Szkolnik 6e56ac6097 updated .gitignore 2021-01-12 23:06:32 -05:00
lksz abd9cc4abc Added Repair-Permissions 2020-12-07 04:41:46 -05:00
lksz 3844492976 Merge branch 'master' of https://code.lksz.me/lksz/PowerShell_Scripts 2020-12-05 18:19:37 -05:00
lksz@work 4cec655429 Fixes to packagesz class code and the win package 2020-12-06 01:18:12 +02:00
lksz 18c2adcf8f Merge branch 'master' of https://code.lksz.me/lksz/PowerShell_Scripts 2020-12-02 00:31:47 -05:00
lksz aca79c186a Created a dedicated ansible package 2020-12-02 00:30:57 -05:00