diff --git a/.bashrc b/.bashrc index 4555bf9e9c02e6425c893dbc0a841e8c56308ba0..1a8222f46e6a30ac5f8806f5cc71a6a04aee5348 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 e1043589b1ea35ad202714f8c27e7cd2c2359022..5faa70a6e57d3a8cd3094b5bbe6e7e4416c9fd11 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;