Last active
December 5, 2019 10:10
-
-
Save johnmmoss/ed0ecab46e86d37b37d9c9d307cd6df7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import-module DevProjectTools | |
# Edit this file | |
function Edit-Profile() { | |
vim $profile | |
} | |
# Edit the vimrc file | |
function Edit-Vimrc() { | |
vim $HOME\_vimrc | |
} | |
# Open the (first) PS Module folder | |
function Open-PSModuleFolder() { | |
start $env:PSModulePath.Split(";")[0] | |
} | |
# Copy current path to the clipboard | |
function Copy-Path() { | |
(pwd).Path | clip | |
} | |
# Set the prompt: PS: NgApp1 [feature/add-customers-grid] > | |
function prompt | |
{ | |
$current = pwd | split-path -leaf | |
$branch = git rev-parse --abbrev-ref HEAD | |
$output = $current; | |
if ($branch) { | |
$output = "$current [$branch]"; | |
} | |
Write-Host ("PS: $output >") -nonewline | |
return " " | |
} | |
# Edit Angular Web project in vs code | |
function Edit-StatementsTrackerWeb () { | |
code "C:\Code\poc-project\StatementsTrackerWeb" | |
} | |
# Edit the StatementsTrackerWeb solution in Visual Studio | |
function Edit-StatementsTrackerWeb () { | |
start "C:\Code\poc-project\SimpleTokenService\SimpleTokenService.sln" | |
} | |
# Run some unit Tests | |
function Run-StatementsApiUnitTests() { | |
vstest.console.exe "$code\StatementsTracker\Api\bin\Debug\Api.UnitTests.dll" | |
} | |
# Start an angular app | |
function Start-StatementsWeb() { | |
start powershell.exe "npm --prefix $code\Statements\Web start" | |
} | |
$code = "C:\Code" | |
$statementsTrackerWeb = "C:\Code\StatementsTrackerWeb"; | |
$statementsTrackerApi = "C:\Code\StatementsTrackerApi"; | |
cd $code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment