mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 05:17:44 +02:00
Add unicode character
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user