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/02/16 08:43] Ivo Blöchliger [Customization] |
lehrkraefte:blc:informatik:glf4-24:bash-install [2024/04/03 09:23] (current) Ivo Blöchliger [Automatisches Setup] |
||
---|---|---|---|
Line 24: | Line 24: | ||
</ | </ | ||
* Schliessen Sie die git-bash und starten Sie diese neu. | * Schliessen Sie die git-bash und starten Sie diese neu. | ||
- | * Wiederholen | + | * Zur Kontrolle können |
+ | <code bash> | ||
+ | alias | ||
+ | </ | ||
+ | * Von jetzt an startet das Kommando '' | ||
+ | |||
+ | ===== Automatisches Setup der Datei .bashrc ===== | ||
+ | Laden Sie die Datei {{lehrkraefte: | ||
+ | <code bash> | ||
+ | cd / | ||
+ | bash setup-aliases.bash | ||
+ | </ | ||
+ | |||
+ | ====== 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: | ||
+ | |||
+ | </ |