Skip to content

Instantly share code, notes, and snippets.

View JakBaranowski's full-sized avatar

Jakub Baranowski JakBaranowski

View GitHub Profile
@JakBaranowski
JakBaranowski / MirrorAiLoadout.bat
Last active June 27, 2021 08:52
Ground Branch mirror loadout batch script. Should be placed in Ground Branch root directory, and will take care of synchronising AI Loadout files so that they are visible in the game mission editor.
:: Creates empty .kit files in the _BadGuys dir mirroring the files in original BadGuys
:: allowing for them to be used in the mission editor.
@echo off
setlocal
set sourceDir=GroundBranch\Content\GroundBranch\AI\Loadouts\BadGuys
set targetDir=GroundBranch\Content\GroundBranch\AI\Loadouts\_BadGuys
if not exist %targetDir% (
#!/bin/bash
#
# DESCRIPTION:
# Creates and displays a 3 part bash prompt. The parts are:
# 1. user@host:absolute-path
# [bg: cyan; text: black]
# 2. (if in git repo) git-branch git-status-icon
# [bg: red/yellow/green depending if behind-or-divereged/ahead/up-to-date with remote; text: black]
# 3. bash prompt
# [bg: black; text: green/red based on last command exit code]