Skip to content

Instantly share code, notes, and snippets.

View MicrogamerCz's full-sized avatar

Micro MicrogamerCz

  • Czech Republic
  • 19:38 (UTC +02:00)
View GitHub Profile
@MicrogamerCz
MicrogamerCz / koi.fish
Created July 12, 2025 21:15
Simple automated build function for CMake projects (with -GNinja)
function koi
if [ -z "$argv[1]" -o "$argv[1]" = "build" ]
# Checks for CMakeLists.txt and navigates accordingly
if contains CMakeLists.txt $(ls)
if not test -e build/
mkdir build/
end
build/
end
# Runs cmake only when build files don't exist