public
imalexnord
read
ms.open
Adds Mac "Open ." command to Windows
Languages
Repository composition by tracked source files.
PowerShell
100%
Create file
Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/ms.open.git
ssh://[email protected]:2222/user/imalexnord/ms.open.git
Trace
install.ps1
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
install.ps1
on main
Author
Date
Commit
Line
Code
Alex Nord
11 days ago
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 1
[CmdletBinding()]
[CmdletBinding()]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 2
param()
param()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 3
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 4
Set-StrictMode -Version Latest
Set-StrictMode -Version Latest
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 5
$ErrorActionPreference = 'Stop'
$ErrorActionPreference = 'Stop'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 6
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 7
$root = $PSScriptRoot
$root = $PSScriptRoot
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 8
$binPath = Join-Path $root 'bin'
$binPath = Join-Path $root 'bin'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 9
$shellScript = Join-Path $root 'shell\MS.Open.ps1'
$shellScript = Join-Path $root 'shell\MS.Open.ps1'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 10
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 11
if (-not (Test-Path -LiteralPath $binPath -PathType Container)) {
if (-not (Test-Path -LiteralPath $binPath -PathType Container)) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 12
throw "Missing bin directory: $binPath"
throw "Missing bin directory: $binPath"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 13
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 14
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 15
if (-not (Test-Path -LiteralPath $shellScript -PathType Leaf)) {
if (-not (Test-Path -LiteralPath $shellScript -PathType Leaf)) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 16
throw "Missing shell integration script: $shellScript"
throw "Missing shell integration script: $shellScript"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 17
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 18
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 19
function Normalize-PathEntry {
function Normalize-PathEntry {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 20
param([string]$Value)
param([string]$Value)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 21
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 22
if ([string]::IsNullOrWhiteSpace($Value)) {
if ([string]::IsNullOrWhiteSpace($Value)) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 23
return ''
return ''
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 24
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 25
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 26
return $Value.Trim().TrimEnd('\')
return $Value.Trim().TrimEnd('\')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 27
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 28
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 29
function Add-UserPath {
function Add-UserPath {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 30
param([string]$PathToAdd)
param([string]$PathToAdd)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 31
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 32
$current = [Environment]::GetEnvironmentVariable('Path', 'User')
$current = [Environment]::GetEnvironmentVariable('Path', 'User')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 33
$entries = @(
$entries = @(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 34
$current -split ';' |
$current -split ';' |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 35
ForEach-Object { Normalize-PathEntry $_ } |
ForEach-Object { Normalize-PathEntry $_ } |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 36
Where-Object { $_ }
Where-Object { $_ }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 37
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 38
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 39
$normalizedTarget = Normalize-PathEntry $PathToAdd
$normalizedTarget = Normalize-PathEntry $PathToAdd
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 40
$alreadyPresent = $entries | Where-Object {
$alreadyPresent = $entries | Where-Object {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 41
$_.Equals($normalizedTarget, [StringComparison]::OrdinalIgnoreCase)
$_.Equals($normalizedTarget, [StringComparison]::OrdinalIgnoreCase)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 42
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 43
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 44
if (-not $alreadyPresent) {
if (-not $alreadyPresent) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 45
$newPath = (@($entries) + $normalizedTarget) -join ';'
$newPath = (@($entries) + $normalizedTarget) -join ';'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 46
[Environment]::SetEnvironmentVariable('Path', $newPath, 'User')
[Environment]::SetEnvironmentVariable('Path', $newPath, 'User')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 47
Write-Host "Added to user PATH: $PathToAdd"
Write-Host "Added to user PATH: $PathToAdd"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 48
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 49
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 50
Write-Host "Already in user PATH: $PathToAdd"
Write-Host "Already in user PATH: $PathToAdd"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 51
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 52
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 53
$processEntries = @($env:Path -split ';')
$processEntries = @($env:Path -split ';')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 54
$inCurrentProcess = $processEntries | Where-Object {
$inCurrentProcess = $processEntries | Where-Object {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 55
(Normalize-PathEntry $_).Equals($normalizedTarget, [StringComparison]::OrdinalIgnoreCase)
(Normalize-PathEntry $_).Equals($normalizedTarget, [StringComparison]::OrdinalIgnoreCase)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 56
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 57
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 58
if (-not $inCurrentProcess) {
if (-not $inCurrentProcess) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 59
$env:Path = "$env:Path;$PathToAdd"
$env:Path = "$env:Path;$PathToAdd"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 60
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 61
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 62
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 63
function Update-PowerShellProfile {
function Update-PowerShellProfile {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 64
param(
param(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 65
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 66
[string]$ProfilePath,
[string]$ProfilePath,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 67
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 68
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 69
[string]$IntegrationScript
[string]$IntegrationScript
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 70
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 71
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 72
$directory = Split-Path -Parent $ProfilePath
$directory = Split-Path -Parent $ProfilePath
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 73
New-Item -ItemType Directory -Path $directory -Force | Out-Null
New-Item -ItemType Directory -Path $directory -Force | Out-Null
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 74
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 75
$beginMarker = '# >>> MS.Open >>>'
$beginMarker = '# >>> MS.Open >>>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 76
$endMarker = '# <<< MS.Open <<<'
$endMarker = '# <<< MS.Open <<<'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 77
$escapedScript = $IntegrationScript.Replace("'", "''")
$escapedScript = $IntegrationScript.Replace("'", "''")
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 78
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 79
$block = @"
$block = @"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 80
$beginMarker
$beginMarker
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 81
`$msOpenShell = '$escapedScript'
`$msOpenShell = '$escapedScript'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 82
if (Test-Path -LiteralPath `$msOpenShell) {
if (Test-Path -LiteralPath `$msOpenShell) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 83
. `$msOpenShell
. `$msOpenShell
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 84
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 85
$endMarker
$endMarker
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 86
"@
"@
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 87
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 88
$content = ''
$content = ''
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 89
if (Test-Path -LiteralPath $ProfilePath) {
if (Test-Path -LiteralPath $ProfilePath) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 90
$content = Get-Content -LiteralPath $ProfilePath -Raw
$content = Get-Content -LiteralPath $ProfilePath -Raw
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 91
$timestamp = Get-Date -Format 'yyyyMMdd-HHmmss'
$timestamp = Get-Date -Format 'yyyyMMdd-HHmmss'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 92
Copy-Item -LiteralPath $ProfilePath -Destination "$ProfilePath.msopen-backup-$timestamp"
Copy-Item -LiteralPath $ProfilePath -Destination "$ProfilePath.msopen-backup-$timestamp"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 93
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 94
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 95
$pattern = "(?ms)^$([regex]::Escape($beginMarker)).*?^$([regex]::Escape($endMarker))\s*"
$pattern = "(?ms)^$([regex]::Escape($beginMarker)).*?^$([regex]::Escape($endMarker))\s*"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 96
$cleaned = [regex]::Replace($content, $pattern, '').TrimEnd()
$cleaned = [regex]::Replace($content, $pattern, '').TrimEnd()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 97
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 98
if ($cleaned) {
if ($cleaned) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 99
$newContent = "$cleaned`r`n`r`n$block`r`n"
$newContent = "$cleaned`r`n`r`n$block`r`n"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 100
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 101
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 102
$newContent = "$block`r`n"
$newContent = "$block`r`n"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 103
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 104
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 105
Set-Content -LiteralPath $ProfilePath -Value $newContent -Encoding UTF8
Set-Content -LiteralPath $ProfilePath -Value $newContent -Encoding UTF8
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 106
Write-Host "Configured PowerShell profile: $ProfilePath"
Write-Host "Configured PowerShell profile: $ProfilePath"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 107
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 108
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 109
Add-UserPath -PathToAdd $binPath
Add-UserPath -PathToAdd $binPath
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 110
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 111
$documents = [Environment]::GetFolderPath('MyDocuments')
$documents = [Environment]::GetFolderPath('MyDocuments')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 112
$profiles = @(
$profiles = @(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 113
(Join-Path $documents 'WindowsPowerShell\Microsoft.PowerShell_profile.ps1'),
(Join-Path $documents 'WindowsPowerShell\Microsoft.PowerShell_profile.ps1'),
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 114
(Join-Path $documents 'PowerShell\Microsoft.PowerShell_profile.ps1')
(Join-Path $documents 'PowerShell\Microsoft.PowerShell_profile.ps1')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 115
) | Select-Object -Unique
) | Select-Object -Unique
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 116
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 117
foreach ($profilePath in $profiles) {
foreach ($profilePath in $profiles) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 118
Update-PowerShellProfile -ProfilePath $profilePath -IntegrationScript $shellScript
Update-PowerShellProfile -ProfilePath $profilePath -IntegrationScript $shellScript
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 119
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 120
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 121
Write-Host ''
Write-Host ''
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 122
Write-Host 'MS.Open is installed.'
Write-Host 'MS.Open is installed.'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 123
Write-Host 'Restart your terminal, then try:'
Write-Host 'Restart your terminal, then try:'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 124
Write-Host ' open .'
Write-Host ' open .'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 125
Write-Host ' mkcd test-folder'
Write-Host ' mkcd test-folder'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 126
Write-Host ' paths'
Write-Host ' paths'