Commit Graph

17 Commits

Author SHA1 Message Date
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
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
lksz 1bef8ca119 Improved Export-FunctionSource + some Docker fixes
Export-FunctionSource to handle Filters and scripts + following Aliases.
Edit-DockerCompose will allow editing of additional files next to the
default docker-compose files.
dcc, dcdown and dcup to work with ProjectPath parameter.
Added ssh.conf to the config.files.json dictionary.
2020-11-11 16:38:56 -05:00
lksz 306e03874d Setup-Profile will update git scripts from git repo 2020-10-03 16:32:55 -04:00
lksz e86c7350be Create $PROFILE's parent dir if it doesn't exists 2020-10-02 15:54:23 -04:00
lksz 90e1723052 Change Move-Item to Copy-Item 2020-10-02 15:49:24 -04:00
lksz ccaaadf371 Setup fixed setup of MyPSScriptRoot (again) 2020-10-02 15:42:40 -04:00
lksz fe97c2880a Fixed cross linked device failing move of .git dir 2020-10-02 14:23:54 -04:00
lksz e14f00d98d Streamline setting of /home/szmedia/.local/share/powershell/Scripts during _setup 2020-10-02 14:16:23 -04:00
lksz c25de685c1 Replaced -GitClone with -NoGitClone 2020-10-02 14:13:33 -04:00
lksz ef920fbb7d Fixed /home/szmedia/.local/share/powershell/Scripts assignment 2020-10-02 14:01:29 -04:00
Gal Szkolnik a782d09b2c fixed scoping issue 2020-10-01 18:19:23 -04:00
lksz 0718bf28c7 Minor midifications 2020-10-01 00:28:57 -04:00
Gal Szkolnik dc9f29f471 Setup-Profile fixes + Edit-TextFile fixes
Setup-Profile: GitClone verbosity
Fixed: Existing $profile code will not be overwritten,
   instead profile code will be inserted before existing code.
Fixed: status message is reflected correctly:
  * Setup (replace/append)
  * Init (file created)
  * Clenaup (removal of code / deletion)
When profile code is removed, a placeholder remains behind,
  this will allow correct replacement if another setup is performed

Edit-TextFile:
Switched to Invoke-ExpressionEx for sudo invocation.
2020-09-30 16:43:07 -04:00
lksz 7117e78a7a GitClone fix
GitClone will work even when Scripts dir already exist
2020-09-30 11:30:28 -04:00
Gal Szkolnik 586f187346 Fixing Windows Setup 2020-09-29 19:51:48 -04:00
lksz ae07e06c27 Setup-Profile and co.
Setup-Profile included, read all about it at
https://blog.lksz.me/the-profile-and-setting-it-up
When running Edit-MyScript without parameters, the $MyPSScriptRoot path
will be sent (editing the directory)
Added ability to edit scripts with Edit-MyPrfiles, making editing
profiles alongside scripts easy.
2020-09-25 01:30:21 -04:00