update install and aliases

This commit is contained in:
Eric D. Rohler 2021-07-02 09:52:42 -04:00
parent 0fa87f9497
commit 0a9190489f
2 changed files with 39 additions and 33 deletions

View File

@ -14,48 +14,50 @@ unalias=alias /d $1
cmderr=cd /d "%CMDER_ROOT%" cmderr=cd /d "%CMDER_ROOT%"
home=cd /d %USERPROFILE% home=cd /d %USERPROFILE%
~=cd /d %USERPROFILE% ~=cd /d %USERPROFILE%
devr=cd /d "%DEV_PATH%"
ncr=cd /d "%NC_PATH%"
;= rem apps ;= rem apps
notes=cd /d "D:\Nextcloud\Notes" notes=cd /d "%NC_PATH%\Notes"
;= rem top-level repos ;= rem top-level repos
repos=cd /d "D:\dev\repos" repos=cd /d "%DEV_PATH%\repos"
blogs=cd /d "d:\dev\repos\blogs" blogs=cd /d "%DEV_PATH%\repos\blogs"
docs=cd /d "D:\dev\repos\docs" docs=cd /d "%DEV_PATH%\repos\docs"
sources=cd /d "d:\dev\repos\sources" sources=cd /d "%DEV_PATH%\repos\sources"
support=cd /d "d:\dev\repos\support" support=cd /d "%DEV_PATH%\repos\support"
workspaces=cd /d "d:\dev\workspaces" workspaces=cd /d "%DEV_PATH%\workspaces"
;= rem support ticket repos ;= rem support ticket repos
tix-ajax=cd /d "D:\dev\repos\support\ui-for-aspnet-ajax" tix-ajax=cd /d "%DEV_PATH%\repos\support\ui-for-aspnet-ajax"
tix-blazor=cd /d "D:\dev\repos\support\ui-for-blazor" tix-blazor=cd /d "%DEV_PATH%\repos\support\ui-for-blazor"
tix-core=cd /d "D:\dev\repos\support\ui-for-aspnet-core" tix-core=cd /d "%DEV_PATH%\repos\support\ui-for-aspnet-core"
tix-fiddler=cd /d "D:\dev\repos\support\fiddler" tix-fiddler=cd /d "%DEV_PATH%\repos\support\fiddler"
tix-mvc=cd /d "D:\dev\repos\support\ui-for-aspnet-mvc" tix-mvc=cd /d "%DEV_PATH%\repos\support\ui-for-aspnet-mvc"
tix-rprt=cd /d "D:\dev\repos\support\reporting" tix-rprt=cd /d "%DEV_PATH%\repos\support\reporting"
tix-rprt-srvr=cd /d "D:\dev\repos\support\report-server" tix-rprt-srvr=cd /d "%DEV_PATH%\repos\support\report-server"
tix-xamarin=cd /d "D:\dev\repos\support\ui-for-xamarin" tix-xamarin=cd /d "%DEV_PATH%\repos\support\ui-for-xamarin"
tix-wpf=cd /d "D:\dev\repos\support\ui-for-wpf" tix-wpf=cd /d "%DEV_PATH%\repos\support\ui-for-wpf"
tix-jquery=cd /d "D:\dev\repos\support\ui-for-jquery" tix-jquery=cd /d "%DEV_PATH%\repos\support\ui-for-jquery"
;= rem docs editing ;= rem docs editing
docs-ajax=cd /d "D:\dev\repos\docs\ajax-docs" docs-ajax=cd /d "%DEV_PATH%\repos\docs\ajax-docs"
docs-blazor=cd /d "d:\dev\repos\docs\blazor-docs" docs-blazor=cd /d "%DEV_PATH%\repos\docs\blazor-docs"
docs-seed=cd /d "D:\dev\repos\docs\docs-seed" docs-seed=cd /d "%DEV_PATH%\repos\docs\docs-seed"
docs-fiddler-core=cd /d "d:\dev\repos\docs\fiddler-core-docs" docs-fiddler-core=cd /d "%DEV_PATH%\repos\docs\fiddler-core-docs"
docs-fiddler=cd /d "d:\dev\repos\docs\fiddler-docs" docs-fiddler=cd /d "%DEV_PATH%\repos\docs\fiddler-docs"
docs-fiddler-everywhere=cd /d "d:\dev\repos\docs\fiddler-everywhere-docs" docs-fiddler-everywhere=cd /d "%DEV_PATH%\repos\docs\fiddler-everywhere-docs"
docs-rprt=cd /d "D:\dev\repos\docs\reporting-docs" docs-rprt=cd /d "%DEV_PATH%\repos\docs\reporting-docs"
docs-rprt-srvr=cd /d "D:\dev\repos\docs\report-server-docs" docs-rprt-srvr=cd /d "%DEV_PATH%\repos\docs\report-server-docs"
;= rem dev shortcuts ;= rem dev shortcuts
prgsb=cd /d "d:\dev\repos\blogs\prgsb" prgsb=cd /d "%DEV_PATH%\repos\blogs\prgsb"
prgsb-src=cd /d "D:\dev\repos\blogs\prgsb-source" prgsb-src=cd /d "%DEV_PATH%\repos\blogs\prgsb-source"
msa=cd /d "d:\dev\repos\sources\msaliases" msa=cd /d "%DEV_PATH%\repos\sources\msaliases"
pb=cd /d "d:\dev\repos\blogs\ericrohler_static" pb=cd /d "%DEV_PATH%\repos\blogs\ericrohler_static"
stpc=cd /d "d:\dev\repos\sources\SupportTicketProjectCreator" stpc=cd /d "%DEV_PATH%\repos\sources\SupportTicketProjectCreator"
fp-ajax=cd /d "D:\dev\repos\sources\FinalProject" fp-ajax=cd /d "%DEV_PATH%\repos\sources\FinalProject"
fp-blazor=cd /d "D:\dev\repos\sources\FinalProject-Blazor" fp-blazor=cd /d "%DEV_PATH%\repos\sources\FinalProject-Blazor"
;= rem git shortcuts ;= rem git shortcuts
gs=git status gs=git status

View File

@ -23,10 +23,14 @@ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUn
## CMDER_ROOT ## CMDER_ROOT
[System.Environment]::SetEnvironmentVariable('CMDER_ROOT',"$($env:USERPROFILE)\Cmder", [System.EnvironmentVariableTarget]::Machine) [System.Environment]::SetEnvironmentVariable('CMDER_ROOT',"$($env:USERPROFILE)\Cmder", [System.EnvironmentVariableTarget]::Machine)
# DEV_ROOT --Use this per-machine, i.e. laptops sometimes only have a single disk and desktops have multiple disks # DEV_PATH --Use this per-machine, i.e. laptops sometimes only have a single disk and desktops have multiple disks
$dev_path = Read-Host -Prompt 'Input the Repos Path:' $dev_path = Read-Host -Prompt 'Input the Repos Path:'
[System.Environment]::SetEnvironmentVariable('DEV_PATH', $dev_path, [System.EnvironmentVariableTarget]::Machine) [System.Environment]::SetEnvironmentVariable('DEV_PATH', $dev_path, [System.EnvironmentVariableTarget]::Machine)
# NC_PATH --Use this per-machine
$nc_path = Read-Host -Prompt 'Input the Nextcloud Path:'
[System.Environment]::SetEnvironmentVariable('NC_PATH', $nc_path, [System.EnvironmentVariableTarget]::Machine)
# User Profile # User Profile
Write-Host "User Profile Directory: $($env:USERPROFILE)" Write-Host "User Profile Directory: $($env:USERPROFILE)"