From 6b1b444a5e6602e316fbfd495e27f1afe6e72111 Mon Sep 17 00:00:00 2001 From: philsmd Date: Sun, 3 Jan 2016 14:15:11 +0100 Subject: [PATCH] fixed tab completion to work with 64.bin, 32.bin and just 'oclHashcat' binaries --- extra/tab_completion/howto.txt | 2 +- extra/tab_completion/install | 4 ++-- extra/tab_completion/{oclHashcat64.sh => oclHashcat.sh} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename extra/tab_completion/{oclHashcat64.sh => oclHashcat.sh} (99%) diff --git a/extra/tab_completion/howto.txt b/extra/tab_completion/howto.txt index c82431c14..738e3eabc 100644 --- a/extra/tab_completion/howto.txt +++ b/extra/tab_completion/howto.txt @@ -1,4 +1,4 @@ run: source ./install OR -source ./oclHashcat64.sh # not working permanently (not working anymore after a reboot etc) +source ./oclHashcat.sh # not working permanently (i.e. not working after a reboot) diff --git a/extra/tab_completion/install b/extra/tab_completion/install index d06710279..26c2f5395 100755 --- a/extra/tab_completion/install +++ b/extra/tab_completion/install @@ -5,7 +5,7 @@ COMPGENSCRIPT=/etc/bash_completion COMPGENFOLDER=${COMPGENSCRIPT}.d -COMPGENTARGET=${COMPGENFOLDER}/oclHashcat64.sh +COMPGENTARGET=${COMPGENFOLDER}/oclHashcat.sh BASHRC=~/.bashrc ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" @@ -131,7 +131,7 @@ if [ -d "${COMPGENFOLDER}" ]; then # copy the script to target folder - cp ${ROOT}/oclHashcat64.sh "${COMPGENTARGET}" + cp ${ROOT}/oclHashcat.sh "${COMPGENTARGET}" # adjust paths to the main binaries of oclHashcat diff --git a/extra/tab_completion/oclHashcat64.sh b/extra/tab_completion/oclHashcat.sh similarity index 99% rename from extra/tab_completion/oclHashcat64.sh rename to extra/tab_completion/oclHashcat.sh index 46728776c..47649b006 100644 --- a/extra/tab_completion/oclHashcat64.sh +++ b/extra/tab_completion/oclHashcat.sh @@ -742,4 +742,4 @@ _oclHashcat () esac } -complete -F _oclHashcat -o filenames "${OCLHASHCAT_ROOT}"/oclHashcat64.bin "${OCLHASHCAT_ROOT}"/oclHashcat32.bin +complete -F _oclHashcat -o filenames "${OCLHASHCAT_ROOT}"/oclHashcat64.bin "${OCLHASHCAT_ROOT}"/oclHashcat32.bin oclHashcat