This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |