Merge pull request #42 from philsmd/master

fixed tab completion to work with 64.bin, 32.bin and just oclHashcat binaries
pull/44/head
Jens Steube 9 years ago
commit 737e1a281c

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

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

@ -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
Loading…
Cancel
Save