From 2a9e19615012e08bf2b185fdea9617116e39da06 Mon Sep 17 00:00:00 2001 From: EstebanMqz Date: Thu, 8 Aug 2024 02:55:26 -0600 Subject: [PATCH] 3 Finished (& ToC) and .markdownlint.json in .vscode & user settings.json --- .bat/Regedit.bat | 3 +- .vscode/.markdownlint.json | 10 ++ README.md | 188 +++++++++++++++++-------------------- 3 files changed, 98 insertions(+), 103 deletions(-) create mode 100644 .vscode/.markdownlint.json diff --git a/.bat/Regedit.bat b/.bat/Regedit.bat index e891de0..61d29d8 100644 --- a/.bat/Regedit.bat +++ b/.bat/Regedit.bat @@ -1,6 +1,5 @@ @echo on rem Win OS .reg files Activator: - runas /user:Administrator regedit /s CMD.reg && regedit /s Node.reg && regedit /s Notepad.reg && regedit /s Powershell.reg && regedit /s Pycharm.reg && regedit /s VSCode.reg && regedit /s bash.reg -References: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg \ No newline at end of file +rem References: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg \ No newline at end of file diff --git a/.vscode/.markdownlint.json b/.vscode/.markdownlint.json new file mode 100644 index 0000000..cefb37a --- /dev/null +++ b/.vscode/.markdownlint.json @@ -0,0 +1,10 @@ +{ + "markdownlint.config": { + "MD001": false, + "MD013": false, + "MD024": false, + "MD029": false, + "MD033": false, + "MD045": false + } +} \ No newline at end of file diff --git a/README.md b/README.md index f78c3d9..9c42363 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,33 @@ -

+

-Context Menu Registries 📂 +Context Menu Registries 📂

- HTML + HTML
-Enable [User/System Environment Variables](https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables) to have [](https://anaconda.org) +Enable [User/System Environment Variables](https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables) to have [](https://anaconda.org) [](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd) [](https://git-scm.com) [](https://anaconda.org) -[](https://apps.microsoft.com/detail/9msmlrh6lzf3?hl=en-US&gl=US) +[](https://apps.microsoft.com/detail/9msmlrh6lzf3?hl=en-US&gl=US) [](https://learn.microsoft.com/en-us/powershell/) [](https://www.jetbrains.com/pycharm/) [](https://code.visualstudio.com) -access in [cd](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cd) ∀ 📂 +access in [cd](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cd) ∀ 📂
- + 1. UAC (User Account Control)
+ + 1.1 Admin. Permissions
+ 1.2 Secure Desktop UAC
+ 1.3 Variables & PATHs
2. 📂 Background Commands
+ + 2.1 Bash, GUI & gitk   [](https://git-scm.com)
+ 2.2 Command Prompt   [](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd)
+ 2.3 PowerShell & GUI   [](https://docs.microsoft.com/en-us/powershell/)
@@ -34,8 +36,13 @@ access in [cd](https://learn.microsoft.com/en-us/windows-server/administr + 2.6 Notepad   [](https://icons8.com/icon/82ixf4KHn6za/notepad)
+ 2.7 Node.js   [](https://nodejs.org/en)
-

+ 3. 📂 Enable User/System Environment Variables & PATHs at Startup
++ 3.1 Modify [`~/.bashrc`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.bashrc) & [`~/profile`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.profile)
++ 3.2 Verify Envs & Directories (source .bashrc to .profile)
++ 3.3 Verify Unix-like Environments in [`~/.bashrc`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.bashrc) & [`~/profile`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.profile)
++ 3.4 Check your PATHs and Dirs.
++ 3.5 Check Results in Folder Backgrounds
Result:

@@ -44,14 +51,14 @@ access in [cd](https://learn.microsoft.com/en-us/windows-server/administr

-

1. User Account Control (UAC)

+

1. User Account Control (UAC)


-#### 1.1 Grant [`$Env:Username`]() Admin. permissions. +#### 1.1 Grant `$Env:Username` Admin. permissions -Run [``Admin.ps1``](https://github.com/EstebanMqz/Registries/blob/main/.ps1/Admin.ps1). +Run [``Admin.ps1``](https://github.com/EstebanMqz/Registries/blob/main/.ps1/Admin.ps1). ``` powershell #Powershell @@ -60,13 +67,14 @@ Run [``Admin.ps1``](https://github.com/EstebanMqz/Registries/blob/main/.ps1/Admi #Out: Administrative Permissions to <$env:USERNAME>: Successful. ``` + ---
-#### 1.2 Left-click [``UAC.bat``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.bat/UAC.bat) to enable secure desktop [UAC](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/settings-and-configuration?tabs=intune). +#### 1.2 Left-click [``UAC.bat``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.bat/UAC.bat) to enable secure desktop [UAC](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/settings-and-configuration?tabs=intune).
-Recommended: +Recommended: [Secure dimmed desktop](https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/user-account-control-switch-to-the-secure-desktop-when-prompting-for-elevation)
@@ -76,7 +84,7 @@ Administrative Permissions to <$env:USERNAME>: Successful.
UAC options:
-
+
  • 0: No prompt.
  • 1: Windows settings changes .
  • @@ -87,14 +95,16 @@ Administrative Permissions to <$env:USERNAME>: Successful.
-``` +``` bat Enter the password for Administrator: xxxxx Value ConsentPromptBehaviorAdmin exists, overwrite(Yes/No)? Yes -``` +``` +
----- -#### 1.3 Add your [Environment Variables](https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables) & [PATHs](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats) +--- + +#### 1.3 Add your [Environment Variables](https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables) & [PATHs](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats)
@@ -104,12 +114,15 @@ Value ConsentPromptBehaviorAdmin exists, overwrite(Yes/No)? Yes rem CMD SystemPropertiesAdvanced ``` + Click & edit in `Advanced System Settings` the button:
- -
-Env_Vars

+
@@ -147,19 +160,16 @@ Once opened, modify [PATHs.sh](https://github.com/EstebanMqz/Context_Menu-Regist ``` -###### Recommended: +###### Recommended [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) [](https://learn.microsoft.com/en-us/windows/wsl/install)
-

-

2. Background Context & Commands

+

2. Background Context & Commands


- - ```CMD Rem CMD start regedit @@ -168,43 +178,38 @@ start regedit Remove TrustedInstaller FullControl on needed Registries, grant it to Administrator manually in  
- - - - Download and Double-click .reg files:
Modify [regedit](https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/windows-registry-advanced-users) - [HKEY_CLASSES_ROOT](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc739822(v=ws.10)) accordingly to [`.reg keys`](https://github.com/EstebanMqz/Context_Menu-Registries/tree/main/.reg) in all flles.
- +--- 1. Bash, GUI & gitk [](https://git-scm.com)
Run [``Bash.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/bash.reg) [``Git-Gui.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/bash.reg) [``gitk.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/bash.reg)
--- - 2. Command Prompt   [](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd)
Run [``CMD.reg``](https://github.com/EstebanMqz/Registries/blob/main/.reg/CMD.reg) --- - 3. PowerShell & GUI [](https://docs.microsoft.com/en-us/powershell/)
-Get Icon's PATHs (double-back-slashed).exe PATHs: -The parent folder contains the [powershell.exe](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_exe?view=powershell-5.1#parameters) & [power_ise.exe](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_ise_exe?view=powershell-5.1)
-Run [``PowerShell.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/PowerShell.reg)
-(modify PATHs accordingly). +```powershell +$PS = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName; Start-Process explorer.exe (Split-Path $PS); $PS = ($PS + '').Replace('\', '\\'); Set-Clipboard -Value $PS; Write-Output $PS +``` ---- +Get Icon's PATHs (double-back-slashed).exe and modify PATHs accordingly. +Run [``PowerShell.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/PowerShell.reg)
+--- 4.     VSCode   [](https://docs.microsoft.com/en-us/powershell/)
-[``VSCode.reg``](https://github.com/EstebanMqz/Context_Menu-Registriesblob/main/.reg/VSCode.reg) +Run [``VSCode.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/VSCode.reg)
--- @@ -212,7 +217,7 @@ Run [``PowerShell.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/b 5.     Pycharm   [](https://www.jetbrains.com/pycharm/)
-[``PyCharm.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/PyCharm.reg) +Run [``PyCharm.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/PyCharm.reg) --- @@ -220,46 +225,43 @@ Run [``PowerShell.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/b
-[``Notepad.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/Notepad.reg) - +Run [``Notepad.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/Notepad.reg) 7.     Node.js   [](https://nodejs.org/en)
-[``Node.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/Node.reg) +Run [``Node.reg``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg/Node.reg) + +Note: To activate all [.reg](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.reg) files at once, use the activator [Regedit.bat](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.bat/Regedit.bat) (having Admin given full permissions in [HKEY_CLASSES_ROOT](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc739822(v=ws.10))) --- -###### Recommended: +
+ +###### Recommended CMD-Restore_Point -or CMD-xcopy with [``external.bat``](https://github.com/EstebanMqz/Registries/blob/main/.bat/external.bat) +or CMD-xcopy. -##### Backup HDD : $SSD_{ext}$ +#### Backup SSD -Assuming your HDD:C & $SSD_{ext}:$D. +Match your Drives according to [``external.bat``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.bat/external.bat) or modify it. ```bash +cd F: && label F: D #Rename F to D ./external.bat -cd D: & label D: SSD_ext #Rename D to SSD_ext ``` -Note: Ignore modification alerts after backup.
+Note: Ignore modification alerts after backup.
-

-
-

Enable User/System Environment Variables & PATHs at Startup

+

+

3. Enable User/System Environment Variables & PATHs at Startup

+
- - -To be able to use the previously enabled [.reg](https://github.com/EstebanMqz/Registries/tree/main/.reg) files you will need to do the following: - - -1. Open your Unix-like environment and input.
-It will open startup files which could be virtual for your OS With a few modifications on [`~/.bashrc`](https://github.com/EstebanMqz/Registries/blob/main/%24HOME/.bashrc)
. +1. Open [`~/.bashrc`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.bashrc) & [`~/profile`](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.profile) and have them modified according to PATHs & directories.
@@ -269,34 +271,21 @@ cd $HOME && code ~/.profile && code ~/.bashrc ```
+
-2. Copy contents according to your environments and directories:
- -+ [``System_Environments.sh``](https://github.com/EstebanMqz/Registries/blob/main/.sh/System_Environments.sh) → .profile
- -+ [``PATH.sh``](https://github.com/EstebanMqz/Registries/blob/main/.sh/PATH.sh) → -.bashrc -
+2. Copy contents according to your environments and directories and source [~/.bashrc](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.bashrc) to [~/.profile](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/%24HOME/.profile) :
-3. Add the following command at the end of [`$HOME$~/.profile`](https://github.com/EstebanMqz/Registries/blob/main/%24HOME/.profile): - -``` bash -# ~./profile. -#'<.sh> -source ~/.bashrc. -``` +[``PATH.sh``](https://github.com/EstebanMqz/Context_Menu-Registries/blob/main/.sh/PATHs.sh) → +.bashrc & .profile
-4. Ensure that Environments Startup PATHs are loaded correctly by running in `bash`():
+3. Ensure that Unix-like Environments PATHs are loaded correctly in Startup files:
-$PS = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName; Start-Process explorer.exe (Split-Path $PS); $PS = ($PS + '').Replace('\', '\\'); Set-Clipboard -Value $PS; Write-Output $PS +
``` bash -#Bash - -./PATH.sh -# Personal Output (according to PATHs): +./Envs_Verif.sh # Directory /C/Program Files (x86)/NVIDIA Corporation/PhysX/Common exists. # Directory /C/Windows/system32 exists. # Directory /C/Program Files/MATLAB/R2021a/bin exists. @@ -305,15 +294,16 @@ $PS = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName; Sta # Directory /C/php-8.2.9 exists. # Directory /C/ProgramData/ComposerSetup/bin exists. # Directory /C/Program Files/Git/cmd exists. -# Directory /C/ProgramData/Anaconda3/Scripts exists. -# Directory /C/Users/Esteban/AppData/Local/Programs/Python/Python311/Scripts exists. +# Directory /C/Users/Esteban/AppData/Local/Programs/Python/Python311/Scripts does not exist. # Directory /C/Users/Esteban/AppData/Local/Programs/Microsoft VS Code/bin exists. # Directory /C/Windows/System32/WindowsPowerShell/v1.0 exists. # Directory /C/Windows/System32/Wbem exists. # Directory /C/Windows/System32/OpenSSH exists. ``` -5. After rebooting check your PATHs & Directories. +4. After rebooting check your PATHs & Directories. + +
```bash #Bash @@ -321,21 +311,23 @@ printenv && echo $PATH #Directories & PATHs related to executables. ``` -1. Startup [.bashrc](https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html) / [.profile](https://www.ibm.com/docs/en/zos/2.1.0?topic=shell-customizing-homeprofile) should enable Registries & Commands in 📁 Backgrounds in any [pwd](https://en.wikipedia.org/wiki/Pwd) : +
+ +5. Startup [.bashrc](https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html) / [.profile](https://www.ibm.com/docs/en/zos/2.1.0?topic=shell-customizing-homeprofile) should enable Registries & Commands in 📁 Backgrounds in any [pwd](https://en.wikipedia.org/wiki/Pwd) :
+
Profile Bashrc

-
Repo Visualization:
-[![Repository](https://img.shields.io/badge/Repository-0089D6?style=square&logo=microsoft-azure&logoColor=white)](https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=EstebanMqz%2FRegistries) +[![Repository](https://img.shields.io/badge/Repository-0089D6?style=square&logo=microsoft-azure&logoColor=white)](https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=EstebanMqz%2FContext_Menu-Registries)
- +

@@ -348,14 +340,12 @@ printenv && echo $PATH - © Copyright 2024 EstebanMqz - Registries (Context Menus & Commands). + © Copyright 2024 EstebanMqz - Context Menu Registries (📂 Background Commands).
- -

References:

@@ -388,24 +378,20 @@ WSL enabled OS [Directories](https://learn.microsoft.com/en-us/windows-server/ad


-
Business Inquiries:
+
Business Inquiries:
[Resume](https://estebanmqz.github.io/EstebanMqz/html/Resume.html) -[LinkedIn](https://www.linkedin.com/in/esteban-m65381722210212839/) -[Business](https://tinyurl.com/2y86e2wa) -Gmail +[LinkedIn](https://www.linkedin.com/in/estebanmqz/) +[Business](https://tinyurl.com/BusinessNo) +Mail + [Github](https://github.com/EstebanMqz?tab=repositories) [GitLab](https://gitlab.com/EstebanMqz) -
-
+
+
-⚡⚡Availability: 24/7 on WA (business inquiries only)
-
- (password): "Marquez"
+⚡ Availability: 24/7 on WA (Business Inquiries only)
- - -