Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromonaco committed Jul 19, 2023
1 parent 04db792 commit d25049f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"state": {
"type": "markdown",
"state": {
"file": "How-to/Run a tool globally on Windows.md",
"file": "How-to/Creating a permanent PowerShell Alias using Set-Alias.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -182,7 +182,7 @@
"state": {
"type": "backlink",
"state": {
"file": "How-to/Run a tool globally on Windows.md",
"file": "How-to/Creating a permanent PowerShell Alias using Set-Alias.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -199,7 +199,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "How-to/Run a tool globally on Windows.md",
"file": "How-to/Creating a permanent PowerShell Alias using Set-Alias.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -222,7 +222,7 @@
"state": {
"type": "outline",
"state": {
"file": "How-to/Run a tool globally on Windows.md"
"file": "How-to/Creating a permanent PowerShell Alias using Set-Alias.md"
}
}
},
Expand Down Expand Up @@ -253,12 +253,13 @@
},
"active": "c6e726f8aada69c0",
"lastOpenFiles": [
"Management/Psychological Safety.md",
"How-to/Run a tool globally on Windows.md",
"How-to/Creating a permanent PowerShell Alias using Set-Alias.md",
"Tools/Docker Desktop.md",
"Management/Psychological Safety.md",
"Cloud/AWS/Moto.md",
"Cloud/AWS/Cognito.md",
"Cloud/AWS/Index.md",
"Tools/Docker Desktop.md",
"APIs/GitHub API.md",
"APIs/Google Calendar API.md",
"APIs",
Expand All @@ -282,7 +283,6 @@
"Management/Culture.md",
"Management/Health Monitor.md",
"Management/High Performing Teams.md",
"Management/Hiring.md",
"Frontend",
"How-to/Git",
"How-to/Powershell",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To create a permanent PowerShell Alias using the Set-Alias cmdlet, you should add it to your PowerShell profile, which ensures that the alias is available every time you launch PowerShell.

1. Open the PowerShell profile file in Notepad: `notepad $profile`
2. Add the following line to create a permanent alias: `Set-Alias -Name aliasname -Value command`
3. Save your changes and close Notepad.
4. To ensure that your profile is loaded, run the command: `. $profile`
2 changes: 1 addition & 1 deletion src/How-to/Run a tool globally on Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ if (!pathVariable.Contains(folderPathToAdd))
pathVariable = $@"{folderPathToAdd};{pathVariable}";
Environment.SetEnvironmentVariable("Path", pathVariable, EnvironmentVariableTarget.Machine);
}
```
```
11 changes: 10 additions & 1 deletion src/Tools/Docker Desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ Docker Desktop for Windows provides a development environment for building, ship
4. Tick the “Start Docker Desktop when you log in“ option
5. Run `systeminfo | find "System Type"` to check if your system is x64 (if so, [download wsl_update_x64.msi](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi))
6. Run `wsl --set-default-version 2`
7. Run `wsl --install -d Ubuntu`
7. Run `wsl --install -d Ubuntu` (This is optional - Docker will configure `docker-desktop-data` as the default distro)
8. Create a default UNIX user account

### Reinstall Distribution

```
wsl --list
wsl --unregister Ubuntu
wsl --list
wsl --install -d Ubuntu
```

## WSL Process
![image](https://user-images.githubusercontent.com/5598150/171560772-3528ca14-e4be-40f9-8c7c-9c032c640e6e.png)

Expand Down

0 comments on commit d25049f

Please sign in to comment.