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
$paramMode = $args[0] | |
$paramSource = $args[1] | |
$paramDestination = $args[2] | |
$paramSilent = $args[3] | |
$silent = (($paramSilent -eq "-s") -or ($paramSilent -eq "--silent")) | |
if ($silent -eq $false) | |
{ | |
Write-Host "$( [char]0x1b )[38;5;51m ______ ___ _______________ $( [char]0x1b )[38;5;84m _________ $( [char]0x1b )[0m |
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
# install Chocolately | |
If(Test-Path -Path "$env:ProgramData\Chocolatey") { | |
echo "Chocolately is installed" | |
} Else { | |
echo "Chocolately is not installed. Installing now..." | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
echo "Chocolately is installed" | |
} | |
# reload path |
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
git stash -u | |
git pull | |
git stash pop | |
$outp = $null; | |
$outp = git ls-files -u | |
if ($outp -eq $null){ | |
Write-Host "No conflics" -ForegroundColor Green | |
} else { | |
Write-Host "===== MERGE CONFLICTS =====" -BackgroundColor DarkRed |