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
| #!/usr/bin/env bash | |
| UNITY_HUB_EDITOR=${1:-$HOME/Unity/Hub/Editor} | |
| pushd "$UNITY_HUB_EDITOR" > /dev/null | |
| for UNITY in *; do | |
| echo "Checking: $UNITY" | |
| CLANGPP="$UNITY_HUB_EDITOR/$UNITY/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++" | |
| if ! [ -f "$CLANGPP" ]; then | |
| echo " Android Build Support is not installed" |
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
| # run the prompt after every command. | |
| PROMPT_COMMAND=prompt_command_hook | |
| function prompt_command_hook() | |
| { | |
| # get the current branch in the format (branch) | |
| GIT_BRANCH=$(__git_ps1 "(%s)") | |
| # if the branch is null, only display user, pwd | |
| # else add an @ and the branch |
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
| using System.Runtime.CompilerServices; | |
| using System.Linq; | |
| using System; | |
| #pragma warning disable CS8625 | |
| namespace Mathias | |
| { | |
| /// <summary> | |
| /// A helper class to make logging information to the console easier. | |
| /// <see href="https://gist.github.com/mathias-bevers/6579c5a397c70ba061e57c1f90ffbc9f">Source</see> |