Configure git for Linux users properly

This commit is contained in:
Manuel Thalmann 2024-09-19 22:00:08 +02:00
parent 2c3c5dd888
commit dce71478e7
3 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#!/bin/env fish
begin
set -l dir (status dirname)
set -l base "$dir/../../../Common/Software/git/main.fish"
source "$dir/../../Scripts/software.fish"
function installSW
@ -13,8 +14,12 @@ begin
gitflow-zshcompletion-avh
end
function configureSW -V dir
fish "$dir/../../../Common/Software/git/main.fish" configure
function configureSW -V base
fish "$base" configure
end
function userConfig -V base
fish "$base" userConfig $argv
end
runInstaller $argv

View file

@ -7,7 +7,7 @@ param (
. "$PSScriptRoot/../../Scripts/System.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
$null = New-Module {
& {
param(
[hashtable] $Parameters
)

View file

@ -8,7 +8,7 @@ begin
end
function userConfig -S -V dir -a name
configureGit "$name"
pwsh -CommandWithArgs '& $args[0] ConfigureUser @{ name=$args[1]; }' "$dir/Manage.ps1" $name
end
runInstaller $argv