1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 11:48:15 +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: run:
source ./install source ./install
OR 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 COMPGENSCRIPT=/etc/bash_completion
COMPGENFOLDER=${COMPGENSCRIPT}.d COMPGENFOLDER=${COMPGENSCRIPT}.d
COMPGENTARGET=${COMPGENFOLDER}/oclHashcat64.sh COMPGENTARGET=${COMPGENFOLDER}/oclHashcat.sh
BASHRC=~/.bashrc BASHRC=~/.bashrc
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@ -131,7 +131,7 @@ if [ -d "${COMPGENFOLDER}" ]; then
# copy the script to target folder # copy the script to target folder
cp ${ROOT}/oclHashcat64.sh "${COMPGENTARGET}" cp ${ROOT}/oclHashcat.sh "${COMPGENTARGET}"
# adjust paths to the main binaries of oclHashcat # adjust paths to the main binaries of oclHashcat

View File

@ -742,4 +742,4 @@ _oclHashcat ()
esac 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