Commit Graph

14 Commits

Author SHA1 Message Date
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