Commit Graph

16 Commits

Author SHA1 Message Date
lksz 86fdee1acc a lot
Modified shell-loading-snippets
DockerNetwork support
better l and ll
dot the pipe
2021-09-06 14:21:51 -04:00
Gal Szkolnik 5b8f0ca309 Merge branch 'master' of https://code.lksz.me/lksz/PowerShell_Scripts 2021-04-27 16:39:03 +00:00
Gal Szkolnik 22aa3ba435 Improve performance of Package identification
Using -ListAvailable with Get-Command to ensure no module loading is
    attampeted while querying loaded commands.
    This improved performance when certain modules have not been
    loaded yet
2021-04-27 16:04:12 +00:00
lksz ac10608cc0 =Fixed oh-my-posh style verification for non Windows systems 2021-04-25 13:03:16 -04:00
lksz b1f612828f Style update for Non-ANSI environments 2021-04-16 15:44:50 +00:00
lksz 91199f7bcf =Testing for old version of PowerShellGet 2021-03-26 18:10:18 +00: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 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 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
Gal Szkolnik c6cc116564 Streamlined pwsz loading from Linux shells
Get-Path updated to support @ notation.
MyConfig class updated to resolve Paths before testing.
MyScript class will look recursivley - this might need to change again.
config.files.json updated to support shell-loading-snippets
shell-loading-snippets added, with single line of code to inject into
startup shell scripts (.zshrc, .bashrc, .shrc)
2020-12-01 23:31:42 -05:00
lksz 42b39f4e25 Introducing Packages
Major Overhaul with Breaking Changes
split into packaged, default behavior moved into 'base' package
each package has a json package description file with criteria for
loading

Modified Setup-Profile to refer to 'base' package path for auto loading

moved Linux aliases and command to 'base.linux' package
created 'docker' package to address docker supported systems

modified Get-MyScripts, Edit-MyScripts and Reload-MyScripts accordingly.

Dropped -System and sys.*, package json conditions will take care of it.

Supplied command to create/edit package json files:
  - New-MyPackage
  - Add-PackageCondition
  - Set-MyPackage
2020-11-25 00:46:33 -05:00