This commit is contained in:
Josh Ashton
2023-08-03 10:52:40 -06:00
parent fbf5b4308d
commit c43e89cff3
8 changed files with 37 additions and 70 deletions
+6 -1
View File
@@ -1,7 +1,7 @@
#!/bin/zsh
# Supported languages.
TYPES=("c", "cs", "java", "js", "python", "flutter", "gradle", "go")
TYPES=("c", "rs", "cs", "java", "js", "python", "flutter", "gradle", "go")
# Catch case where there are too many arguments.
if [[ $# -gt 1 ]]; then
@@ -99,6 +99,11 @@ if [[ $TYPE == "c" ]]; then
rm a.out
# Run a Rust app.
elif [[ $TYPE == "rs" ]]; then
clear
cargo run
# Run C# app.
elif [[ $TYPE == "cs" ]]; then
clear