1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

fixed tab completion to work with 64.bin, 32.bin and just 'oclHashcat' binaries

This commit is contained in:
philsmd 2016-01-03 14:15:11 +01:00
parent 11bf28745a
commit 6b1b444a5e
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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

View File

@ -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