Add unicode character

This commit is contained in:
Markus Fleschutz
2021-04-16 20:01:38 +02:00
parent ef5367ed53
commit 52d81a2bed
18 changed files with 50 additions and 81 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/pwsh
#!/usr/bin/pwsh
<#
.SYNTAX configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
.DESCRIPTION sets up the Git user configuration
@ -7,16 +7,9 @@
#>
param($FullName = "", $EmailAddress = "", $FavoriteEditor = "")
if ($FullName -eq "") {
$FullName = read-host "Enter your full name"
}
if ($EmailAddress -eq "") {
$EmailAddress = read-host "Enter your e-mail address"
}
if ($FavoriteEditor -eq "") {
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
}
if ($FullName -eq "") { $FullName = read-host "Enter your full name" }
if ($EmailAddress -eq "") { $EmailAddress = read-host "Enter your e-mail address"}
if ($FavoriteEditor -eq "") { $FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)" }
try {
& git --version
@ -34,7 +27,7 @@ try {
& git config --global core.symlinks true
& git config --global core.longpaths true
& git config --global init.defaultBranch main
write-host -foregroundColor green "Done - your Git user configuration is now:"
write-host -foregroundColor green "✔️ your Git configuration has been saved, it's now:"
& git config --list
exit 0
} catch {