Pastebin

Paste #3809: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

#!/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
}

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.