Add run_once scripts for unix (not complete for macosx)
This commit is contained in:
parent
6ba1596291
commit
93ff04c6e2
2 changed files with 51 additions and 5 deletions
|
@ -5,10 +5,15 @@ if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
|
|||
Exit
|
||||
}
|
||||
|
||||
$config_folder = "$env:USERPROFILE\.config\gitui"
|
||||
$symlink_folder = "$env:APPDATA\gitui"
|
||||
if (Test-Path $symlink_folder) {
|
||||
Remove-Item -Recurse $symlink_folder
|
||||
$appDatasToSymlink = 'gitui'
|
||||
Foreach ($item in $appDatasToSymlink) {
|
||||
$config_folder = "$env:USERPROFILE\.config\$item"
|
||||
$symlink_folder = "$env:APPDATA\$item"
|
||||
if (Test-Path $symlink_folder) {
|
||||
Remove-Item -Recurse $symlink_folder
|
||||
}
|
||||
New-Item -Path $symlink_folder -ItemType SymbolicLink -Value $config_folder
|
||||
}
|
||||
|
||||
New-Item -Path $symlink_folder -ItemType SymbolicLink -Value $config_folder
|
||||
# Install required packages with winget
|
||||
winget install alacritty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue