1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

Merge pull request #42 from philsmd/master

fixed tab completion to work with 64.bin, 32.bin and just oclHashcat binaries
This commit is contained in:
Jens Steube 2016-01-03 15:28:57 +01:00
commit 737e1a281c
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