Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:blc:informatik:glf4-24:bash-install [2024/03/04 17:29] Ivo Blöchliger [Aliases für python und notepad] |
lehrkraefte:blc:informatik:glf4-24:bash-install [2024/04/03 09:23] (current) Ivo Blöchliger [Automatisches Setup] |
||
---|---|---|---|
Line 38: | Line 38: | ||
</ | </ | ||
+ | ====== Automatisches Setup ====== | ||
+ | <code powershell ofi-setup.ps1> | ||
+ | New-Item c:\ofi -ItemType Directory -ea 0 | ||
+ | if (!(Test-Path C: | ||
+ | if (!(Test-Path c: | ||
+ | echo " | ||
+ | Invoke-WebRequest -Uri " | ||
+ | } else { | ||
+ | echo " | ||
+ | } | ||
+ | echo " | ||
+ | cd c:\ofi | ||
+ | Invoke-Expression .\PortableGit.7z.exe | ||
+ | } else { | ||
+ | echo "Git Bash already installed!" | ||
+ | } | ||
+ | if (!(Test-Path " | ||
+ | echo "alias notepad='/ | ||
+ | echo "alias python=' | ||
+ | echo " | ||
+ | } else { | ||
+ | echo " | ||
+ | } | ||
+ | Invoke-Expression C: | ||
+ | |||
+ | </ |