#!/bin/bash
#
# this script should not be run directly,
# instead you need to source it from your .bashrc,
# by adding this line:
#   . ~/MyScripts/extracommands.sh
#

# opw (open pharo workspace)
function opw() {
  echo "going to ${1} workspace"
  cd ~/Documents/Smalltalk/2-MyWorkspaces/workspace$1
}


# run latest image
function rli() {
  LATEST_IMAGE=`ls -1t *.image | head -1`

  echo "running latest image: ${LATEST_IMAGE}"
  pharo ${LATEST_IMAGE}
}

# ls latest image
function lsli() {
  LATEST_IMAGE=`ls -1t *.image | head -1`

  echo ${LATEST_IMAGE}
}


