-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-user.ps1
30 lines (24 loc) · 1.09 KB
/
start-user.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$ErrorActionPreference = "Stop"
# Write-Output "Configuring git..."
# git config --global user.name "Jean Honlet"
# git config --global user.email [email protected]
# git config --global push.default current
# # Push tags
# git config --global push.followtags true
# git config --global pull.rebase true
# git config --global rebase.autoStash true
# git config --global fetch.prune true
# git config --global fetch.writeCommitGraph true
# git config --global init.defaultBranch main
# Write-Output "Configuring git done"
# Write-Output "* Installing startup scripts..."
# # https://learn.microsoft.com/en-us/dotnet/api/system.environment.specialfolder
# $userStartupFolder = [Environment]::GetFolderPath("Startup")
# Write-Output "[I] Startup folder: $userStartupFolder"
# $WshShell = New-Object -comObject WScript.Shell
# $Shortcut = $WshShell.CreateShortcut("$userStartupFolder\jh-startup.lnk")
# $Shortcut.TargetPath = "$PSScriptRoot\bin\jh-startup.ps1"
# $Shortcut.Save()
# Write-Output "* Installing startup scripts done"
# & $PSScriptRoot\etc\jh-startup.ps1
Write-Output "start-user: ok"