#!/bin/bash # Do not remove permanently function rm { mv $1 ~/.Trash # Probably needs a check if dir exists } # grep bash history function grash() { grep --color $1 ~/.bash_history } BIN_DEPS="id $READLINK ls basename ls pwd cut" #Dependencies check for i in $BIN_DEPS; do which $i > /dev/null if [ $? -ne 0 ]; then echo -e "Error: Required program could not be found: $i" exit 1 fi done pause() { local dummy read -s -r -p "Press any key to continue..." -n 1 dummy }