Skip to content

Commit

Permalink
add run as well
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 10, 2024
1 parent 5c94d3d commit b935301
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/lmtoy_functions2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ lmtoy_version2="10-nov-2024"
echo "LMTOY>> lmtoy_functions2 $lmtoy_version2 via $0"
echo "LMTOY>> useful aliases loaded:"
echo " lmtoy_run [projectID]"
echo " run [projectID]"

function lmtoy_run {
if [ -z $1 ]; then
Expand All @@ -13,3 +14,11 @@ function lmtoy_run {
cd $WORK_LMT/lmtoy_run/lmtoy_$1
fi
}

function run {
if [ -z $1 ]; then
(cd $WORK_LMT/lmtoy_run/; ls -d lmtoy_* | sed s/lmtoy_//g | pr -4 -t)
else
cd $WORK_LMT/lmtoy_run/lmtoy_$1
fi
}

0 comments on commit b935301

Please sign in to comment.