From 9eb7ca3d4ddc83a9329a859c526763e6caa3be56 Mon Sep 17 00:00:00 2001
From: Dante Falzone <dante.j.falzone@protonmail.com>
Date: Thu, 14 Nov 2019 15:06:49 -0600
Subject: [PATCH] added aliases for using the tma-16

---
 .bashrc | 4 ++++
 proj.sh | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc
index 4555bf9..1a8222f 100644
--- a/.bashrc
+++ b/.bashrc
@@ -151,3 +151,7 @@ source ~/scripts/*.sh;
 
 # Get the weather.
 alias wthr="curl http://wttr.in/Lincoln?m"
+
+# Make it easier to use the TMA-16 and the assembler for it.
+alias tma16="$HOME/tma-16/tma-16-rs/target/release/tma-16-rs"
+alias tmasm="python3 ~/tma-16/tma_16_assembler.py"
diff --git a/proj.sh b/proj.sh
index e104358..5faa70a 100644
--- a/proj.sh
+++ b/proj.sh
@@ -14,7 +14,9 @@ proj() {
         if [[ -n $2 ]]; then
             # file handle for the project's language specified?
             if [[ -n $3 ]]; then
-                mkdir $2;
+                if [[ ! -d $2 ]]; then
+                    mkdir $2;
+                fi
                 cd $2;
                 mkdir src;
                 mkdir doc;
-- 
GitLab